Well, IMHO it's better than a clueless NPE came out of nowhere, not ideal though.
tibi-3 wrote: > > here is the get method. it will return a runtime exception when nothing > is found. > i wonder why not return null? > > thanks, > > tibi > > /** > * Generic method to get an object based on class and identifier. An > * ObjectRetrievalFailureException Runtime Exception is thrown if > * nothing is found. > * > * @param id the identifier (primary key) of the object to get > * @return a populated object > * @see org.springframework.orm.ObjectRetrievalFailureException > */ > public T get(PK id); > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/GenericManager-get-method-tf3757475s2369.html#a10621762 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
