1. What is the difference between Transaction-scoped Persistence context and Extended Persistence context? stackoverflow.comWhat is the difference between Transaction-scoped Persistence context and Extended Persistence context ?? |
2. Does Hibernate lock an entity in the persistence context? forum.hibernate.orgI am a little confused by something. If I have an entity that is loaded into a Persistence Context, and I need to add an element to a collection on that Entity, then perform a calculation based on the elements now contained in that collection and set a value in that entity based on the result of my calculation, and I ... |
3. [Solved] Extended persistence context results in a deadlock forum.hibernate.orgHi, I'm using Hibernate (3.5.6) + Spring (3.0.5) + JSF (2.1.1-b03) to build a web app. MySQL 5.5.10 is the data provider, connected by mysql-connector 5.1.9. c3p0 (0.9.1.2) is the connection pool manager. I'm facing some row dead lock for a while, but until now I always manage to find a workaround. After many days, I finally discover something, and I ... |
4. Transaction context forum.hibernate.orgWhen my Stored Procedures are executed and I throw an exception, the data stored in the SP don't roll back. My question is... using the connection obtained through the session, would it be in the same transaction of the session? Sample: try { getSession().beginTransaction(); // .... Connection conn = session.connection(); CallableStatement callStmt = conn.prepareCall(chamada); stmt.executeUpdate(); // ..... (manipulate objects..) getTransaction().commit(); }catch(Exception ... |
5. managing sessions in non-transactional context forum.hibernate.orgNewbie Joined: Fri Jan 26, 2007 10:13 pm Posts: 9 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.2.2 GA Name and version of the database you are using: Db2 7.2 .5 J2EE Application Server : Webpshere 6.0.2.15 Hi, We are using a customized HibernateUtil class which is used by both transactional and non-transactional stateless session beans ... |
6. EJB 3.0 Locking (entity not in the persistence context) forum.hibernate.org |
7. commit in a CMT session bean context not commiting to the DB forum.hibernate.orgWhat is really odd about this is. When setting the show-sql to true. I can see the generated insert statements. However, these statements never make it to the DB. Because, again, there aren't any new rows that have been inserted. Another thing to note. If I run my junit tests more than once without restarting the app-server. I get a duplicate ... |
8. Automatic concurrency control without extended context forum.hibernate.orgHi, I am looking for a way to obtain automatic version checking without using an extended persistence context. I know that tools like Toplink (not essentials) enables this. Is there a way to obtain it? In case it shouldn't be possible, can I use extended persistence context in Session beans (not ejb)? Or in conversion scope beans (spring web flow)? Are ... |
9. Cannot create transaction context forum.hibernate.orgHi , I get this error cannot create transaction context - infrequently. Not sure when it works and why. Hibernate version: I am using hibernate 3.0 Mapping documents: |
10. Cannot create transaction context forum.hibernate.orgHi , I get this error cannot create transaction context - infrequently. Not sure when it works and why. Hibernate version: I am using hibernate 3.0 Mapping documents: |