Fix LazyInitializationException error
This commit is contained in:
committed by
Aditya Chandel
parent
9ec66bb296
commit
a4d8f12843
-3
@@ -22,9 +22,6 @@ public class LibraryPathEntity {
|
||||
@JoinColumn(name = "library_id", nullable = false)
|
||||
private LibraryEntity library;
|
||||
|
||||
@OneToMany(mappedBy = "libraryPath", fetch = FetchType.LAZY)
|
||||
private List<BookEntity> books;
|
||||
|
||||
@Column(nullable = false)
|
||||
private String path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user