4 Replies Latest reply on Aug 5, 2008 7:59 PM by Stephen de Vries

    Self referential entity mappings

    Stephen de Vries Newbie

      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?