2 Replies Latest reply on Mar 25, 2006 4:40 PM by Emmanuel Bernard

    how to auto-bind to a session after the entity becomes unman

    dongping lu Newbie

      I have an entity like this:

      class Group{
      //Lazy
      List getUsers();
      }

      and it is used in web pages ( in the same JVM ).
      but if the group object is passed from another page, it will become unmanaged,
      so when invoking getUsers() method, exception will be thrown, because its lazy.

      my question is , how could it be re-binded to a session?
      so it can be used more naturally.