Hi,
I have an existing database, already populated with data the integrity of which is to be questioned.
So there are instances where ObjectNotFoundException is thrown when retrieving relationships. To get around this in Hibernate XML mapping you had the "not-found" element (which defaults to "exception" but can be changed to "ignore") so that the relationship is just treated as a null reference.
However, I can't seem to see a way to do this with EJB3 Annotations and have searched Google and the forums extensively..
Any ideas?
Thanks in advance
Graeme
|