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?  

Sincerely,
Wayne
-- 
View this message in context: 
http://www.nabble.com/JUnit%3A-testUpdateUser%3A-saveUser-didn%27t-throw-EntityExistsException-tp20815324s2369p20815324.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]

Reply via email to