Lets say I have two objects:
public class Person { private Long id; private String name; private Integer classroomId; } public class Classroom {