subclass « Transaction « JPA Q&A





1. Hibernate joined-subclass deadlocks with MSSQL    stackoverflow.com

I'm using Hibernate with Joined-SubClasses to Map a class hierarchy to a database. Unfortunately this causes deadlocks when an object is updated while a different thread is trying to load the ...

2. exception when lock entity with table per subclass mapping    forum.hibernate.org

Hello. Hibernate generates wrong sql statement for updating version column when obtaining lock (LockMode.FORCE) for a subclass entity. It updates version column which is in root entity but put into where clause name of primary key column from subclass table and it is different that PK name of root table. DDL Code: CREATE TABLE article_item ( article_item_id integer NOT ...

3. executeUpdate() ignores transaction with joined-subclass ??    forum.hibernate.org

Hi, I'm trying to verify if transaction demarcations works. I'm using hibernate-3.2.6.GA in JDBC Transaction. This is my Java code: Code: SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); try { sessionFactory.getCurrentSession().beginTransaction(); // ...

4. Locking with joined subclasses    forum.hibernate.org

TraceObjectsSeq ...

5. locking on a subclass table    forum.hibernate.org

6. joined-subclass and optimistic-locking with version    forum.hibernate.org

Hi Hibernate version: 2.1.8 Mapping documents: Extra attributes left out ... Code: ...

7. Optimistic locking with joined subclasses    forum.hibernate.org

Hi! I'm using Hibernate 3.1.3 and i'm having a problem with optimistic locking. I hava a mapping with a joined sublcass. The parent class is configured with the optimistic-locking attribute in 'all' and the joined subclass is configured with the dynamic-update attribute in 'true'. When I run a test case, i'm getting this exception Caused by: org.hibernate.MappingException: optimistic-lock attribute not supported ...

8. subclass & transaction    forum.hibernate.org

Hi everyone! I have a problem. I have classes User, and Marker which is a subclass of User. I have tables User and Marker. In a use case, I want to make a User become a Marker, so I have to insert a Marker for the existing User. Then, I want to load the newly created Marker. I created User and ...

9. Joined subclass and optimistic lock strategies    forum.hibernate.org