If I have @PrePersist or @PreRemove, in the methods that gets called, how
can I access the Transaction object?

Example:

        @PrePersist
        public void prePersist()
        {
             em.persist(anotherObj);   // How do I get access to em?
             ....
         }

Thanks for the help.
-- 
View this message in context: 
http://www.nabble.com/Accessing-Trasaction-or-EnityManager-in-LifeCycle-methods-tf3722974.html#a10417736
Sent from the open-jpa-dev mailing list archive at Nabble.com.

Reply via email to