openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Majeed Arni <>
Subject Accessing Trasaction or EnityManager in LifeCycle methods
Date Thu, 10 May 2007 17:16:00 GMT

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


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

Thanks for the help.
View this message in context:
Sent from the open-jpa-dev mailing list archive at

View raw message