Type « Transaction « JPA Q&A





1. How to change Entity type in JPA?    stackoverflow.com

In my specific case, I am making use of a discriminator column strategy. This means that my JPA implementation (Hibernate) creates a users table with a special DTYPE column. This column ...

2. Can I have join between entities in openJPA with transaction-type="RESOURCE_LOCAL" in    bytes.com

P: 36 Abhishek Bhatt TECHNOLOGY: openJPA(ORM) ISSUE: I have a (one to many relationship)join between two entities. When I try to fetch the entities, it's throwing an error "It is not ...

3. @PersistenceContext(type=TRANSACTION) ignored    forum.hibernate.org

Hi. I'm having a problem using the Hibernate JPA implementation with Spring transactions / Tomcat. I think the following code should throw a TransactionRequiredException if save is called when not in a transaction. Code: public class MyObjDAO { @PersistenceContext(type=PersistenceContextType.TRANSACTION) private EntityManager em; public void save(MyObj ...

4. what are the types of cache concurrency strategies supported    forum.hibernate.org

In Hibernate doc 2.1, SwarmCache only supports read-only and nonstrict-read-write concurrency strategies for secondly level cache. Does this apply to the collection-cache too in the clustered environment? If I specify read-write cache conconcurrency for one of my collection-cache when using SwarmCache, what will happen, an exception or the cache configuration be ignored? Thanks

5. Rollback problem with MySQL (table type InnoDB vs. MyISAM)    forum.hibernate.org

I open a new thread because I want you to read the solution directly instead of digging for it in another thread which has lots of "noise" in it. My problem was that although I rolled back a transaction in code (tx.rollback), the data has not been rolled back in my MySQL DB. Then I figured out that MySQL 4.0 uses ...

6. Trying to do ACID operations with 2 type of transactions    forum.hibernate.org

Hi to all, I had spend a few days trying to solve a problem that is now a headache. Probably I forget something or I cant be able to see the solution for myself, so I'll be pleased is someone can help me to get a solution. I'm developing an application with is own and old persistence layer. This persistence layer ...