Hello,
I have set some attributes with LazyLoading property, it's working great. But I have question.
Take this example
@OneToMany(mappedBy = "content", cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }, fetch=FetchType.LAZY) private List<Content> contents; .... with the setter and getter. ....
public void doStuffInContents() { // Doing stuff on contents attributes... }
if (contents == null) contents = getContents();
Hum... In fact. The both solution I proposed doesn't work (or there is a bug in my code)...
Any ideas will be good.