In EJB 2.x we had CreateException and FinderException to help us determine what is happening, and what to do next. In 3.0, I have found the EntityNotFoundExcption on the find methods, but it appears there's nothing like the CreateException (and actually, with preview 3 there seems to be nothing like create, persist will add or modify). Am I to assume I must execute a find before doing a create if I want to capture any duplicate problems? It does currently throw an exception, but they are Hibernate exceptions, which I would expect.
Thanks for any enlightenment!
Jim
post this feedback to ejb3-edr2-feedback@sun.com
Exception handling needs to be addressed in the spec more thoroughly.
Bill