Olá pessoal…
estou com uma duvida…
se eu criar uma uma classe abstrata contendo isto
@PersistenceContext
EntityManager em;
public void inserir(Object o) throws ClienteException {
try {
em.persist(o);
} catch (EntityExistsException e) {
e.printStackTrace();
throw new ClienteException("problema ao persistir", e);
}
}
quando eu criar uma classe e estender ela…
o ejb ira funcionar ?