I got the same using postgresql with JPA. I replaced save (user) to saveUser(user) And it went fine from there.
mraible wrote: > > On Wed, Dec 3, 2008 at 8:38 AM, mwaynewalter > <[email protected]> wrote: >> >> Folks, >> >> I get this error, "saveUser didn't throw EntityExistsException" in the >> UserDaoTest method getUpdateUser. >> >> Here's my configuration: >> >> Appfuse 2.0.2 with JPA, full-source, and Oracle 10g instead of MySQL. >> >> NOTE: This unit test failure goes away when using the MySQL. It also >> goes >> away using Hibernate and Oracle. So it's the JPA <-> Oracle issue. >> >> In stepping through the code, the entityManager.merge() appears to >> succeed >> and never throws an exception even though I verified the object does >> already >> exists in the schema. And I verified that the schema for this table has >> a >> unique constraint on the userid and the email. >> >> Why does this test fail only with Oracle and not with MySQL? > > I don't know - have you found an answer for this question? > > Matt > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/JUnit%3A-testUpdateUser%3A-saveUser-didn%27t-throw-EntityExistsException-tp20815324s2369p21422752.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
