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

Reply via email to