[jboss-user] [EJB 3.0] - Access EntityContext from EntityListener
    thebreeze 
    do-not-reply at jboss.com
       
    Wed Aug 30 09:57:57 EDT 2006
    
    
  
I have an EntityListener class which I am deploying as a default EntityListener for all entities within the same persistence manager package.
Is there an "official" (or any other) way I can access the EntityContext thats associated with the entity passed into a method in the EntityListener along the lines of:
public class MyBoringEntityListener {
    @PrePersist
    void prePersist(Object entity) {
        // do something with the EntityContext here...
    }
}
Thanks,
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968373#3968373
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968373
    
    
More information about the jboss-user
mailing list