public class University {
private String id;
private String name;
private String address;
private List<Student> students;
// setters and getters
}
In lazily loading when I load a University from the database, JPA loads its id, name, and address fields for me. Students will not load. When I call getStudents() method, JPA will then execute the query
select * from students where universitycode=id
Is my understanding of lazy loading correct?