This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes JPA and Hibernate -- Manual Flush Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JPA and Hibernate -- Manual Flush" Watch "JPA and Hibernate -- Manual Flush" New topic
Author

JPA and Hibernate -- Manual Flush

Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

I've read in several places, including "Seam in Action" (Manning), that an important part of Hibernate not supported by JPA is manual flush. However, the JPA EntityManager does have a flush() method, so I'm a bit confused. Does it mean that JPA allows manual flushes, but you can't stop it from also auto-syncing to the database as it sees fit? Or does it mean that em.flush() won't have any effect unless using the Hibernate implementation of JPA?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA and Hibernate -- Manual Flush
 
Similar Threads
Hibernate JPA and JTA on J2SE platform
difference between session and entitymanager
Difference between commit and flush in Hibernate
Seam without Hibernate, possible?
Hibernate with Application server connection pool