Hi,
Mapping files are below
thanks
StatementTitle.hbm.xml
=================================
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="ie.gov.agriculture.dpcs.cert.StatementTitle" lazy="false" table="DPCS_STATEMENT_TITLE">
<id name="statementTitleId" column="STATEMENT_TITLE_ID" unsaved-value="0" type="long">
<generator class="native"/>
</id>
<property name="title" column="STATEMENT_TITLE" type="string"/>
<property name="selectable" column="SELECTABLE" type="string"/>
<many-to-one name="certLanguage"
column="LANGUAGE_ID"/>
<set name="statements" table="DPCS_STATEMEMT_TITLE_LINKS" cascade="all">
<key column="STATEMENT_TITLE_ID"/>
<many-to-many column="STATEMENT_ID"
class="ie.gov.agriculture.dpcs.cert.Statement"/>
</set>
</class>
<query name="statement.title.list">
from StatementTitle StatementTitle
</query>
</hibernate-mapping>
Statement.hbm.xml
==================================
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="ie.gov.agriculture.dpcs.cert.Statement" lazy="false" table="DPCS_STATEMENT">
<id name="statementId" column="STATEMENT_ID" unsaved-value="0" type="long">
<generator class="native"/>
</id>
<property name="statement" column="STATEMENT" type="string"/>
<property name="statementCode" column="STATEMENT_CODE" type="string"/>
<many-to-one name="certLanguage"
column="LANGUAGE_ID"/>
</class>
<query name="statement.list">
from Statement Statement
</query>
</hibernate-mapping>