0 Replies Latest reply on Sep 12, 2006 9:44 AM by cybernd

    entity question

    cybernd

      Hi,

      Is it possible to use Interfaces for OneToOne relations?

      For example (Pseudocode):

      Entity A implements MarkerInterface {}
      Entity B implements MarkerInterface {}
      Entity C {
       MarkerInterface something;
      }
      


      I know that its possible to use Inheritance, but im unable to use the same BaseClass in A and B.

      I just want to avoid this:
      Entity class C {
       A a;
       B b;
      }
      

      Where its only allowed to set a or b instead.

      thx for your help,
      Bernhard