Hi Dominique,
what's the name of the attribute 'motherboardId' in my.Motherboard, does it match too?
E.g. in class-descriptor you have
name="motherboardId"
column="motherboadId"
See typo 'oar' and 'oa', could the same typo in my.Motherboard too?
regards, Armin
dodo wrote:
Hi,
Using db-ojb-1.0.rc6, tomcat and Oracle, I got an error message:
... caused by: java.lang.NoSuchFieldException: motherboardId
... org.apache.ojb.broker.metadata.MetadataException: Can't find member 'motherboardId' in my.Motherboard.
However, in the repository_user.xml, I have defined the class as following:
<class-descriptor class="my.Motherboard" table="Motherboard"> <field-descriptor name="motherboardId" column="motherboadId" jdbc-type="INTEGER" autoincrement="true" sequence-name="UniqueIdentifier"/> ....
And I use the query as following: Criteria crit = new Criteria(); crit.addEqualTo("motherboardName", "Mb"); Query q = new QueryByCriteria(Motherboard.class, crit); ....
Could you help me to find out what's wrong?
Thanks
Dominique
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
