0 Replies Latest reply on Nov 15, 2005 3:17 AM by Kirill Trofimov

    Stateful (statless) EJB3 and inheritance

    Kirill Trofimov Newbie

      I create:

      public abstract class GenericEjb3DAO <T, ID extends Serializable> implements GenericDAO<T, ID> {
       public EntityManager em;

      Then i create:
      public class UserDAOBean extends GenericEjb3DAO<User, Long> implements UserDAO {

      And when i handle to "em" in first or second class, exception is raised

      When i remove inheritance, all fine. What is wrong in my code?