I am not sure about the code below... is that correct? I dunno what is the difference between id name and property name
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.6//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.6.dtd">
<hibernate-mapping>
<class name="roseindia.tutorial.hibernate.Contact" table="MUMIN_VILLAGE">
<id name="FIRSTNAME" type="text" column="FIRSTNAME" >
<id name="LASTNAME" type="text" column="LASTNAME" >
<id name="PHONE" type="text" column="PHONE" >
<id name="EMAIL" type="text" column="EMAIL" >
<generator class="assigned"/>
</id>
<property name="FIRSTNAME">
<column name="FIRSTNAME" />
</property>
<property name="LASTNAME">
<column name="LASTNAME" />
</property>
<property name="PHONE">
<column name="PHONE"/>
</property>
<property name="EMAIL">
<column name="EMAIL"/>
</property>
</class>
</hibernate-mapping>