1 Reply Latest reply on Feb 22, 2005 9:56 AM by Bill Burke

    EJB 3.0 Lifecycle Exceptions

    Jim Crume Newbie

      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