I am having an VO/Entity class with some field and its getter/setter. I want to map this entity to the multiple table in the Mapping file. For the Single table mapping with entity currently i am doing as below,
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
version="1.0">
<entity class="ABC">
<table name="ABCTABLE"/>
<attributes>
<id name="id">
<column name="id"/>
</id>
<basic name="fname">
<column name="fname"/>
</basic>
</attributes>
</entity>
</entity-mappings>
The above code snippet is in my mapping.xml file. How i can map this ABC class to the multiple table.Any Suggestion must be appreciated.