All,
We have a requirement to extend many entities in our application with dynamic attributes defined by customers.So we are using extended attributes features of Eclipselink.
And when we want to define dynamic entity mappings, we can define in orm.xml and provide it as persistence property.
However for maintainable reasons, we want to define entity mappings for each entity in a separate XML file and want to create the main orm.xml with xi:includes as shown below
<?xml version="1.0" encoding="windows-1252"?>
version="1.0">
<xi:include href="">
</entity-mappings>
and in the address.xml we would like to give the definitions like this
<entity class="entity.impl.AddressDAO">
<access>VIRTUAL</access>
<access-methods get-method="getExtendedAttribute" set-method="setExtendedAttribute"/>
<attributes>
<basic name="char1" access="VIRTUAL" attribute-type="String">
<column name="CHAR1"/>
</basic>
<basic name="char2" access="VIRTUAL" attribute-type="String">
<column name="CHAR2"/>
</basic>
</attributes>
</entity>
However, the XMLUnmarshaller seems to ignore this xi:include and NOT creating any entity mappings.
Is there way to make this work? Or any other suggestions?
Thanks,
Rama