I understand that a Hibernate-generated object needs to be kept in a LoadableDetachableModel in order to avoid errors across requests. I also understand that a LDM has to belong to a component in order for its detach to be called at the end of a request. So what should I do with Hibernate-generated objects that live in the session, specifically a UserInfo object? Since the session doesn't have a model, how do I inform Wicket to detach these models after each request?
thanks, Dane