users@glassfish.java.net

Re: exception inserted a deleted entity

From: <glassfish_at_javadesktop.org>
Date: Wed, 09 May 2007 19:21:34 PDT

TopLink Essentials by default uses 2nd level cache that is not being updated when you manually (not via the same EMF as the one you used to run your 1st test) change the data in the database.
You either need to cleanup data via EM apis, or refresh your data explicitly in the 2nd test, or disable the cache.

regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=216247