Mantis - Resin
Viewing Issue Advanced Details
3537 minor always 05-30-09 12:13 08-27-09 10:14
voodude  
ferg  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.2  
0003537: EntityManager.getDelegate() returns null until transaction is started
When using Hibernate (and probably Amber, although I haven't checked), the EntityManager.getDelegate() method always returns null until some other method on the EM has been called:

Object delegate = em.getDelegate();
// delegate is null
em.getFlushMode();
delegate = this.em.getDelegate();
// delegate is now the hibernate EntityManagerImpl

Notes
(0004177)
ferg   
08-27-09 10:14   
support/0610