Hi, the default behaviour from Hibernate is that only
@OneToMany and @ManyToMany are fechted lazy.
@Basic, @Lob and @OneToOne are fetched eager by default.
For @Lob you can activate lazy loading only with bytecode instrumentation (See chapter 19.1.7 of the manual -- the rest of chapter 19 is also useful). It's not recommended and a special query is the preferred solution.
So you normally don't have to change anything, if that is ok for you.
Why don't you like
Quote:
lazy="true"
? Have you tried annotations?
E. g.
Code:
@OneToMany(fetch = FetchType.EAGER, cascade = javax.persistence.CascadeType.ALL)
or
Code:
@OneToMany(fetch = FetchType.LAZY, cascade = javax.persistence.CascadeType.ALL)
Greetings Michael