4 Replies Latest reply on Aug 5, 2008 7:59 PM by stephendv.stephen.twisteddelight.org

    Self referential entity mappings

    stephendv.stephen.twisteddelight.org

      Hi all,


      How do I create a self referential mappings?  For example, I'd like to do something like:



      @Entity
      @Name("user")
      @Scope(ScopeType.SESSION)
      public class User {
      
          @ManyToMany 
          private List<User> friends;
      
      ...
      }



      Is this possible?