Adrian Cox asked a great question over at StackOverflow on how to prevent (Hibernate) entities from being attached to your Wicket component tree, thus generating all those nasty exceptions like StaleObjectException, LazyInitException and the like: JPA managed objects must not be stored in the session. Instead, JPA managed objects are loaded on each request through [...]
↧