<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<!-- db="${table.getParent().getName()}"  -->
<hibernate-mapping >
### depends on superclass
#if( ${entity.getSuperClass()} )	
	<joined-subclass name="${entity.getFqn()}" table="${table.getName()}" extends="${entity.getSuperClass().getFqn()}" >
#else
	<class name="${entity.getFqn()}"  table="${table.getName()}" >
#end
##
#set( $usedSet = ${helper.newInstance("java.util.HashSet")} )
$generator.parse("hibernate/mapping/hbm_xml_id.vm", "", "usedSet", $usedSet)
$generator.parse("hibernate/mapping/hbm_xml_many2one.vm", "", "usedSet", $usedSet)
$generator.parse("hibernate/mapping/hbm_xml_one2many.vm", "", "usedSet", $usedSet)
$generator.parse("hibernate/mapping/hbm_xml_properties.vm", "", "usedSet", $usedSet)
### depends on superclass
#if( ${entity.getSuperClass()} )	
	</joined-subclass>
#else
	</class>
#end
##
</hibernate-mapping>
