Stephen Bartlett
2005-03-24 03:54:33 UTC
I've run into a problem similar to the one described by
Johan Duflost titled "hibernatedao"
In addition to incorrect case being used in the finder
method's query, I also discovered the query is constructed
without an "=" operator. This results in the following
exception:
net.sf.hibernate.QueryException: could not resolve
property: FirstName of: eg.User [from eg.User aTable WHERE
aTable.FirstName ?]
There are two problems with the query:
1. The query is missing the '=' operator.
2. The property's case doesn't correspond to its mapping.
I expect it to begin with a lower case 'f'.
Johan Duflost titled "hibernatedao"
In addition to incorrect case being used in the finder
method's query, I also discovered the query is constructed
without an "=" operator. This results in the following
exception:
net.sf.hibernate.QueryException: could not resolve
property: FirstName of: eg.User [from eg.User aTable WHERE
aTable.FirstName ?]
There are two problems with the query:
1. The query is missing the '=' operator.
2. The property's case doesn't correspond to its mapping.
I expect it to begin with a lower case 'f'.