I keep getting errors that XXXX is not mapped. I think I have everything setup correctly but I am obviously missing something.
I am trying to run this:
var r = ormService.findIt("from StudentAssessment as a where a.StudentId = :StudentId", { studentId=Arguments.oStudent.geStudentId()} );
writeDump(r); abort;
The StudentAssessment object looks like:
component accessors="true" persistent="true" table="StudentAssessments" extends="coldbox.system.orm.hibernate.ActiveEntity" {
property name="StudentId" fieldtype="Id" ormtype="string" length="32" column="StudentId";
property name="AssessmentId" fieldtype="Id" ormtype="string" length="32" column="AssessmentId";
property name="Created" ormtype="timestamp";
}
And the error I continue to get is:
Application Execution Exception
Error Type: org.hibernate.hql.ast.QuerySyntaxException : 0
Error Messages: StudentAssessment is not mapped [from StudentAssessment as a where a.StudentId = :StudentId]
Any help on this would be much appreciated. I have received this error before but found work arounds, but I kind of want to know what this is caused from.
Thanks!