Are you detaching your model? If not, it could be returning a Product object that was obtained during a different Hibernate session.
On Wed, Sep 29, 2010 at 5:53 PM, Matt Schmidt <mschmid...@gmail.com> wrote: > I am using LoadableDetachableModel's to load my persisted objects from the > database, but I am still getting a lazy load exception when accessing a > property that is a Set. > > For example: take persistent POJO Product that has this property, where > ProductType is another persistent POJO: > > private Set<ProductType> productTypes; > > > I get the lazy load when trying to access this property from the LDM: > > Collection<ProductType> x = ((Product) model.getObject()).getProductTypes(); > > for(ProductType pt : x) { //lazy load here > > ..... > > > What am I missing? > > Thanks, > Matt > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org