After porting my app from OJB .9 to .9.5, I noticed that my QueryByCriteria
no longer work properly. I was able to trace down the problem to the lack of
the translation of the class fieldname to table column name. For example:

<field-descriptor id="1"
 name="firstName"
 column="first_name"
 jdbc-type="VARCHAR"/>


In .9, the following worked, criteria.addLike("firstName","caster"); and
firstName was translated to first_name in the select statement.

However, in .9.5, I have to write

criteria.addLike("first_name","caster");

I think .9.4, worked like .9

Thanks
Caster



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to