I guess you have one-to-many relation from SCHOOL to STUDENT_ORM table.
If that is the case you might be declared a list in the School.java as follows:
<list name="students" inverse="true">
<key column="school_ID" />
<one-to-many class="com.hibernate.Student" />
</list>
Even with your criteria query,
session.createCriteria(School.class)
.createAlias("Student_ORM", "Student")
you can get the list of students.
List<Student> studentList = school.getStudents();
If this not resolved your problem, can you please give the exact requirement with these 2 tables?
------------------------
Velu
|