Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: id name and property name
PostPosted: Wed May 30, 2012 10:00 pm 
Newbie

Joined: Wed May 30, 2012 2:39 am
Posts: 5
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.