[jboss-user] [EJB 3.0] - @PersistenceContext annotation in an abstract superclass

bruce@dpi do-not-reply at jboss.com
Wed Jul 26 22:06:37 EDT 2006

Hello All,

I know that the JBoss EJB3 implementation allows me to use the @PersistenceContext annotation in an abstract superclass.

For example:

public abstract class MyAbstractSuperclass implements MyInterface {

	EntityManager entityManager;

	// Other code which I have omitted 


Can anyone point me to EJB3 documentation which specifies that using the @PersistenceContext in an abstract superclass is valid according to the specification and will therefore be portable across application servers? 

Many thanks,

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961169#3961169

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961169

More information about the jboss-user mailing list