I'm using the following HQL query to try and load a set of objects when I select a Student object based on the advice found at the following link. http://www.javalobby.org/articles/hibernate-query-101/
from gradebook.model.Student student where student.studentId=1 left join fetch student.scores
I get the following error. unexpected token: left near line 1, column 64 I've pasted the relevant section of my mapping file below.
<set name="scores" inverse="true" lazy="true" table="score" fetch="select">
<key>
<column name="student_id" not-null="true" />
</key>
<one-to-many class="gradebook.model.Score" />
</set>