Hi Marius,
Sorry, I didn't notice the link to the orm.xml.
You can't compare an object reference (x.person) to a value 2983, and this is what the exception complains about.
If that value represents the id of the related person, change the left side of the comparison to the person's id field (x.person.id). Or you can compare 2 persons (x.person = :person) and pass a reference to an existing person as a parameter to the query.
You'll need to fix the 'service' comparison as well.
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=232050