My team problem like this resolve with inheritance. public abstract class GeneralDataAccessManipulator implements DataAccessManipulator { | | protected abstract EntityManager getEntityManager(); | | public void delete(Object entity) { | if (!getEntityManager.contains(entity)) { | entity = doMerge(entity); | } | try { | doDelete(entity); | } catch (Exception e) { | e.printStackTrace(); | } | } | | | public class Specjalization extedns GeneralDataAccessManipulator { | | @PersistenceContext(name="puXXX") | private EntityManager entityManager; | | protected EntityManager getEntityManager() { | return entityManager; | } | }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185724#4185724 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185724 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user