users@glassfish.java.net

Re: Database synchronization

From: <glassfish_at_javadesktop.org>
Date: Fri, 05 Sep 2008 13:07:43 PDT

Persist() creates rows in the table, not adds column to the table definition, right? If you just need to synchronize the cahed values with the updated in the database, either call em.refresh() or disable caching for these entities (see Wonseok's blog for details: http://weblogs.java.net/blog/guruwons/archive/2006/09/understanding_t.html).

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

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