While @OneToMany and @ManyToMany (collection fields) have LAZY as a default fetch mode, which states that these fields (normally big size) can only be loaded when needed and accessed, which increases performance.
@Lob annotation does not have a default fetch mode, therefore to state one, you can follow @Lob with @Basic(fetch=LAZY) or by simply @Basic for EAGER fetch
|