I have a Parent Child relation like Library and Books,
public class Library {
@OneToMany()
private List<Books> books;
}
public class Book {
@ManytoOne()
private Library;
}
public interface LibraryRepository extends PagingAndSortingRepository<Library, Long> {
}
On querying the library repository I am getting the books also along with library information. I want to not list the books in the query , just get all the libraries..