Joined: Wed Sep 17, 2003 1:31 am Posts: 7 Location: tampa, FL
|
Make sure to use a 0 based value as the first parameter in the setXXX() methods used on the Query object when setting parameterized values instead of being 1 based.
Example:
Query query = session.createQuery(" from Widget as widget where widget.persistence = ? " );
setString( 1, "hibernate" ); //hibernate does not like you
setString( 0, "hibernate" ); //hibernate likes you
If this doesn't help anyone please disregard. The logs didn't do much to point to the mistake.
regards
|
|