6061626364656667
@SuppressWarnings("PMD.UnusedPrivateMethod") @edu.umd.cs.findbugs.annotations.SuppressWarnings("UPM_UNCALLED_PRIVATE_METHOD") @PostConstruct private void postConstruct() { accountDAO = new AccountDAOImpl(); accountDAO.setEntityManager(em); }
6162636465666768
202122232425262728
private EntityManager em; private final AccountDAOImpl accountDAO; public AccountManager(EntityManager em) { accountDAO = new AccountDAOImpl(); accountDAO.setEntityManager(em); this.em = em; }
474849505152535455
private ParametreManagerLocal paramEJB; @PersistenceContext(unitName = "EvasionPU") private EntityManager em; protected AccountManager(EntityManager em) { accountDAO = new AccountDAOImpl(); accountDAO.setEntityManager(em); this.em = em; }
53545556575859
accountDAO.setEntityManager(em); this.em = em; } public AccountManager() { accountDAO = new AccountDAOImpl(); }