Hi
Check if you are looking for something like this
Code:
<hibernate-mapping>
<class name="com.Item" entity-name="ItemAuction" table="ITEM_AUCTION">
<id name="id" column="ITEM_AUCTION_ID">...</id>
<property name="xyz" column="xyz"/>
</class>
<class name="com.Item" entity-name="ItemSale" table="ITEM_SALE">
<id name="id" column="ITEM_SALE_ID">...</id>
<property name="xyz" column="xyz"/>
</class>
</hibernate-mapping>
and then save it like
Code:
Item itemForAuction = new Item();
itemForAuction.setDescription("desc");
itemForAuction.setInitialPrice( new BigDecimal(11) );
session.save("ItemAuction", itemForAuction);