thread « DAO « JPA Q&A





1. Is there a way to change the JPA fetch type on a method?    stackoverflow.com

Is there a way to change the JPA fetch type on a single method without editing the entity object? I have a shared ORM layer consisting of JPA entity classes. This ORM ...

2. ThreadLocal JPA EntityManager in DAO    stackoverflow.com

In my DAO classes I have a reference to an EntityManager. I want to make the acces to the EntityManager thread-safe by using ThreadLocal. So far my attempts have only resulted ...