I am having trouble mapping an interface implementation to a property
contained by another object. Could anyone please tell me what I am doing
wrong.
I am using the 1.1 maven2 plugin and jibx 1.1 and I get this error:
[INFO] [jibx:bind]
[INFO] Running JiBX binding compiler (single-module mode) on 3 binding
file(s)
Warning: No reference to base class in extension mapping for mapping element
at(line 4, col 127, in ZipcodeImpl.jibx.xml)
Error: No mapping with name zipcode for structure element at (line 10, col
69, in AddressImpl.jibx.xml)
This'll give you a rough idea of what the classes are like:
public class AddressImpl implements Address
{
String street;
Zipcode zipcode;
...
}
public class ZipcodeImpl implements Zipcode
{
String code;
String city;
...
}
AddressImpl.jibx.xml
<binding forwards="false" value-style="attribute">
<include path="ZipcodeImpl.jibx.xml"/>
<mapping class="com.gbg.neware.domain.address.AddressImpl"
name="address">
...
<structure field="zipcode" name="zipcode" map-as="zipcode"/>
...
</mapping>
</binding>
ZipcodeImpl.jibx.xml
<binding>
<mapping class="com.gbg.neware.domain.address.Zipcode" abstract="true"
/>
<mapping name="zipcode"
class="com.gbg.neware.domain.address.ZipcodeImpl"
extends="com.gbg.neware.domain.address.Zipcode"> <-- line 4, col 127
<value style="element" name="code" field="code" usage="optional"/>
...
</mapping>
</binding>
--
View this message in context:
http://www.nabble.com/Help-with-Mapping-Interfaces-tf3160912.html#a8767105
Sent from the jibx-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users