Hi,
I have a problem with Lazyload of Map objects of Java using Hibernate Annotations only?
My piece of code -
@CollectionOfElements
@OneToOne(fetch = FetchType.LAZY)
@MapKey(columns = { @Column(name = "locale", nullable = false)})
private Map values;
Instead of @OneToOne, I also tried with
@LazyCollection(LazyCollectionOption.TRUE)
But Unable to lazy load the map.
Moreover the mapping file used in Hibernate are automatically generated. I can't write them explicitly.
Regards,
Sucheta.