// Declaring fetch type for one to many association in your POJO @OneToMany(mappedBy = "user", fetch = FetchType.LAZY) private Set<Document> documents = new HashSet<Document>(); // ...
// Declaring fetch type for one to many association in your POJO @OneToMany(mappedBy = "user", fetch = FetchType.LAZY) private Set<Document> documents = new HashSet<Document>(); // ...