Dear devs,
I have tried to use unsynchronized PersistenceContext with TomEE 7.0.0M1
(both OpenJPA and Hibernate 5.0.2):
@Stateful
@ConversationScoped
public class MyBean {
@PersistenceContext(type = PersistenceContextType.EXTENDED,
synchronization = SynchronizationType.UNSYNCHRONIZED)
private EntityManager em;
public void doSomething() {
em.persist(new Student());
}
}
As PersistenceContext is unsynchronized, the code above should not write
anything to DB (unless I call em.joinTransaction()). Yet it does.
Is it a bug or not yet implemented Java EE 7 feature?
Cheers,
Donatas
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-does-not-support-UNSYNCHRONIZED-PersistenceContext-tp4676564.html
Sent from the TomEE Dev mailing list archive at Nabble.com.