Open Session In View I.

Example code is available on

As described in LazyInitializationException article, we will run into troubles with LazyInitializationException when domain object tries to load other object lazily. If the disabling of lazy loading is not what we are looking for and we still want to do lazy fetching, we have to use OSIV (Open Session In View).

Stephan Grundner has implemented adding OSIV filter into the plugin. Thanks to that we can configure openSessionInViewFilter property in VaadinConfig.grovy.

openSessionInViewFilter = ''

Or add older Hibernate filter in case you are using Hibernate 3.

openSessionInViewFilter = ''

results matching ""

    No results matching ""