This class, dropped from the java.lang.object class to the model, does not work in any way. Below is my code.
List<Contactinfo> listStudentInfo = new ArrayList<Contactinfo>();
listStudentInfo = dataService.getStudentInfo();
System.out.println(listStudentInfo.size());
Contactinfo contactinfo = (Contactinfo)listStudentInfo.get(0);
But in sleep mode, you donβt need to join if you have both Entity associated with @ Many-to-one and the One-on-One annotation. Then you need to select only one object, you will automatically get access to another object through the connection. Make sure you use the getter (), setter () method for the connection field. Hope this clarifies the situation.
source
share