Results 1 to 3 of 3
- 11-22-2009, 06:08 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 16
- Rep Power
- 0
- 11-23-2009, 06:00 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
If the EntityManager is container managed and of type PersistenceContextType.TRANSACTION then a transaction is required. Otherwise how does the implementation know which database to refresh from?
- 12-05-2009, 12:11 PM #3
Member
- Join Date
- Oct 2009
- Posts
- 16
- Rep Power
- 0
Agreed.. transaction is required but what it has to do with detatched instance ?
Moreover:
P-331 says : "We use the method to undo changes made by the ItemManager client and return fresh entity data from the database."
but when we call merge() (before refresh()), the changes made by the client will get reflected in the database.
Similar Threads
-
Application-Managed EntityManager transaction type must be RESOURCE_LOCAL
By CatchSandeepVaid in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 11-23-2009, 05:56 PM -
sound works then stops!
By smileii in forum CLDC and MIDPReplies: 0Last Post: 09-26-2009, 12:06 AM -
Container Managed Persistence
By Java Tip in forum Java TipReplies: 0Last Post: 12-27-2007, 10:16 AM -
org.hibernate.ejb.Version <clinit> INFO: Hibernate EntityManager 3.2.0.CR1
By Heather in forum JDBCReplies: 2Last Post: 06-30-2007, 03:01 PM


LinkBack URL
About LinkBacks

Bookmarks