1 Reply Latest reply on Apr 3, 2009 4:23 PM by zergspirit

    Design solution for User in session

    acdias

      Hi,


      I'm starting with Seam and I'm having some doubts about designing my classes.


      I wanna put a User entity in session and get it in a managed bean.



      @Name("user")
      @Scope(SESSION)
      public class User{}
      
      @Name("bean")
      public class Bean{
         @In
         private User user;
      }



      Using this way I'll make my model dependent of the control.


      Can you imagine a better way to design this?