7 Replies Latest reply on Jan 22, 2006 12:16 PM by amit

    Inheritance in EJB3

    David Mann Newbie

      The tutorial and EJB3 spec docs don't give a lot of information on inheritance and the strategies. Specifically, is it possible to change inheritance strategies part way through the inheritance tree? i.e.

      ClassB inherits from ClassA using JOINED
      ClassC inherits from ClassB using TABLE_PER_CLASS
      ClassD inherits from ClassC using SINGLE_TABLE

      or does my entire heirarchy need to use the same strategy?
      It is not clear from the example since the root class implements the same strategy as the class that inherits from it.

      Thanks for any insights..