i am using xml configurations, but what i am missing. t.. ---------------------------------------------------------------------------------------------- <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Generated Dec 11, 2015 12:15:06 AM by Hibernate Tools 3.4.0.CR1 --> <hibernate-mapping> <class name="com.cms.domain.Logindtl" table="logindtl" catalog="cmsdb"> <id name="userid" type="string"> <column name="USERID" length="7" /> <generator class="assigned" /> </id> <property name="password" type="string"> <column name="PASSWORD" length="45" not-null="true" /> </property> <set name="userdtls" table="userdtl" inverse="true" lazy="true" fetch="select"> <key> <column name="USERID" length="7" not-null="true" /> </key> <one-to-many class="com.cms.domain.Userdtl" /> </set> </class> </hibernate-mapping> ------------------------------------------------------------------------------ <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Generated Dec 11, 2015 12:15:06 AM by Hibernate Tools 3.4.0.CR1 --> <hibernate-mapping> <class name="com.cms.domain.Department" table="department" catalog="cmsdb"> <id name="id" type="int"> <column name="ID" /> <generator class="assigned" /> </id> <property name="description" type="string"> <column name="DESCRIPTION" length="45" not-null="true" /> </property> <set name="userdtls" table="userdtl" inverse="true" lazy="true" fetch="select"> <key> <column name="DEPTID" not-null="true" /> </key> <one-to-many class="com.cms.domain.Userdtl" /> </set> </class> </hibernate-mapping> -------------------------------------------------------------------------------------------------------------- <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Generated Dec 11, 2015 12:15:06 AM by Hibernate Tools 3.4.0.CR1 --> <hibernate-mapping> <class name="com.cms.domain.Userdtl" table="userdtl" catalog="cmsdb"> <id name="id" type="int"> <column name="ID" /> <generator class="assigned" /> </id> <many-to-one name="department" class="com.cms.domain.Department" fetch="select"> <column name="DEPTID" not-null="true" /> </many-to-one> <many-to-one name="userrole" class="com.cms.domain.Userrole" fetch="select"> <column name="ROLID" not-null="true" /> </many-to-one> <many-to-one name="logindtl" class="com.cms.domain.Logindtl" fetch="select"> <column name="USERID" length="7" not-null="true" /> </many-to-one> <property name="userfirstname" type="string"> <column name="USERFIRSTNAME" length="45" not-null="true" /> </property> <property name="usermiddlename" type="string"> <column name="USERMIDDLENAME" length="45" /> </property> <property name="userlastname" type="string"> <column name="USERLASTNAME" length="45" not-null="true" /> </property> <property name="recidentaddress" type="int"> <column name="RECIDENTADDRESS" not-null="true" /> </property> <property name="permentaddress" type="int"> <column name="PERMENTADDRESS" not-null="true" /> </property> </class> </hibernate-mapping> ----------------------------------------------------------------------------------------- <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Generated Dec 11, 2015 12:15:06 AM by Hibernate Tools 3.4.0.CR1 --> <hibernate-mapping> <class name="com.cms.domain.Userrole" table="userrole" catalog="cmsdb"> <id name="id" type="int"> <column name="id" /> <generator class="assigned" /> </id> <property name="description" type="string"> <column name="description" length="45" not-null="true" /> </property> <set name="userdtls" table="userdtl" inverse="true" lazy="true" fetch="select"> <key> <column name="ROLID" not-null="true" /> </key> <one-to-many class="com.cms.domain.Userdtl" /> </set> </class> </hibernate-mapping> ----------------------------------------------------------
So could you please help me what i am missing.
|