|
Re: MOXy support for inheritance (Java -> XML) [message #658262 is a reply to message #658209] |
Mon, 07 March 2011 15:56 |
|
Hi Xavier,
You can fix this by using the bindings file to mark the super class (GenericBusinessClass) transient:
<?xml version="1.0" encoding="UTF-8"?>
<xml-bindings
xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.eclipse.org/eclipselink/xsds/persistence/oxm eclipselink/xsds/eclipselink_oxm_2_2.xsd"
package-name="xyz.integration.stocks.domain">
<java-types>
<java-type name="xyz.integration.stocks.domain.GenericBusinessClass" xml-transient="true"/>
<java-type name="xyz.integration.stocks.domain.Stock"
xml-accessor-type="PUBLIC_MEMBER" >
<xml-root-element name="stock" />
<xml-type name="stock" />
<java-attributes>
<xml-element java-attribute="ref"
xml-path="ref/text()" />
</java-attributes>
</java-type>
</java-types>
</xml-bindings>
-Blaise
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03738 seconds