File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Query after JPA collective update not getting updates Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Query after JPA collective update not getting updates" Watch "Query after JPA collective update not getting updates" New topic
Author

Query after JPA collective update not getting updates

Oliver Chua
Greenhorn

Joined: Feb 27, 2004
Posts: 29
Hi All,

I am using JPA on JSE.
I've added two records in the table, updated both records collectively,
and then retrieved both records to check they've been updated.

I've tried debugging, and the database is updated after the commit,
but the select doesn't return the newer versions.
If I get a new entity manager and use it to query, it passes.

Is there an explanation for this behavior
and is there a fix or a workaround without getting a new entity manager?

Thanks







 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query after JPA collective update not getting updates
 
Similar Threads
persistence.xml file for MS SQL Server 2000
javax.persistence.PersistenceException
Application-managed persistence context in EJB
Please help me need urgent help on JPA connection
Simple JPA Program using Eclipselink 1.1 in Eclipse