a single-table inheritance based lightweight ORM example on Force.com