Hi,
I follow the CDI example at https://github.com/peterl1084/cdiexample.
My datasource is a database, which is accessed via JPA/Hibernate.
I have the following case:
Class A {
/* JPA entity class */
Set<B> manyinstances = ...
}
The instances of Class A are shown in a MTable (so that they can be selected and edited in an AbstractForm).
However, I am not interested in the “manyinstances” property.
Therefore, I want to use lazy loading (in JPA/Hibernate terms) on that property.
However, my impression is that JTable accesses the “manyinstances” property somehow, dispite that it is loaded lazy in JPA/Hibernate
I get the following exception:
com.vaadin.ui.Table$CacheUpdateException
caused by
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role:
Is there a way to load the “manyinstances” property lazy while using MTable (and AbstractForm)?
Thanks.
JG