Hi All

I am guessing this is more of a Hibernate thing/issue but if some one has
encountered this and has a explanation that I can probably use from the
Wicket front would be great.

https://forum.hibernate.org/viewtopic.php?f=1&t=1008473


I have a LazyIntializationException when i page through some items. I use
the PageableListView, the List item(s) are entities that are retrieved via
an association Person.phones which is  a Set type.
The funny thing is, the LIException is intermittent. I am also using
OpenSessionInViewFilter. Any thoughts?

By the way the this is the load() implemenation, I have set the Model
Object's phoneList with a list of values fetched via the Service->DAO. I
have used this with other entities without association and it works  but I
guess is a different scenario(not associations)

Model = new LoadableDetachableModel<Object>() {
    @Override
            protected Object load() {
                return containerForm.getModelObject().getPhoneList();
            }
        };
}

If someone has any thoughts would appreiciate hearing from you.


Cheers

Reply via email to