From: Brad C. <bra...@wo...> - 2002-05-08 04:49:03
|
it appears that session.load throws a HibernateException if an object with the supplied id doesn't exist. would it be better for hibernate to throw a different exception in this case (say an ObjectNotFoundException that extends HibernateException), to differentiate between the object not existing and some other error? or is the expectation simply that a find query is to be used if u r not sure if a particular persisted object exists? thanx brad > _______________________________ > brad clow > chief technical officer > workingmouse >=20 > email: bra...@wo... > web: http://www.workingmouse.com >=20 |