openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Majeed Arni <ma...@sbcglobal.net>
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?

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.


Mime
View raw message