Hello,
I have problem's to compile a mapping for our Cayenne classes.
I allways get following error for all attributes
Error: Nonstatic field cin not found in class
com.gide.pdvcms.bo.commonstore.base._Product for value element at (line 20,
col 46, in conf/JibX/mapping.xml)
The classes I will mapped are generated from a Database schema and all
attributes/values pair are stored inside a HashMap (CayenneDataObject). The
getter and setter are inside a business class (_Product).
Is it possible to map and compile it with JibX?
Or must it be mapped on a different way?
Has anybody experience with mapping Cayenne gernated classes with JibX?
The class hierarchy is
CayenneDataObject // Cayenne
protected Map values = new HashMap(); // here will all property
value pairs stored
GenericBusinessObject extends CayenneDataObject
_Product extends GenericBusinessObject
// here are all getter and setter for the Attributes
// Example
public void setCin(String newCin) {...}
public String getCin() {...}
Product extends _Product
Mapping I used at the moment:
<mapping name="Personalisierungsauftrag_e_card"
class="com.gide.pdvcms.bo.commonstore.Product"
extends="com.gide.pdvcms.bo.commonstore.base._Product">
<structure
map-as="com.gide.pdvcms.bo.commonstore.base._Product" />
</mapping>
<mapping class="com.gide.pdvcms.bo.commonstore.base._Product"
abstract="true">
<value style="attribute" name="CIN" field="cin"
set-method="setCin" get-method="getCin" />
Regards,
florian
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users