Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ORM: when to raise an exception: on object creation or on use?

4 views
Skip to first unread message

Victor Porton

unread,
Sep 4, 2015, 10:15:59 AM9/4/15
to
Should an ORM implementation query the DB as soon as an active record is
created in order to check that the queried row exists in DB, or is it OK to
throw an exception later when attempting to access a field (for an
nonexistent row)?

--
Victor Porton - http://portonvictor.org
0 new messages