1 25 package org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.persistencectxlife; 26 27 import javax.ejb.Local ; 28 import javax.ejb.Stateful ; 29 import javax.ejb.TransactionManagement ; 30 import javax.ejb.TransactionManagementType ; 31 import javax.persistence.EntityManager; 32 import javax.persistence.PersistenceContext; 33 import javax.persistence.PersistenceContextType; 34 35 import org.objectweb.easybeans.tests.common.ejbs.base.persistencectxlife.BasePCtxLifetimeCM00; 36 import org.objectweb.easybeans.tests.common.ejbs.base.persistencectxlife.ItfPCtxLifetime00; 37 38 39 45 @Stateful (name = "SFSBPCtxLifeCME01", mappedName="SFSBPCtxLifeCME01") 46 @Local (ItfPCtxLifetime00.class) 47 @TransactionManagement (TransactionManagementType.CONTAINER) 48 public class SFSBPCtxLifeCME01 extends BasePCtxLifetimeCM00{ 49 50 53 @PersistenceContext(unitName="testEntity00", type=PersistenceContextType.EXTENDED) 54 private EntityManager em; 55 56 59 @Override 60 public void initEntityManager(){ 61 super.initEntityManager(em); 62 } 63 64 } 65 | Popular Tags |