-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Xml mapping file
PostPosted: Sun Aug 07, 2005 3:35 am 
Beginner
Beginner

Joined: Tue Oct 28, 2003 6:43 am
Posts: 33
In the xml mapping file why do you have to specify always name attribute in the tag "column" and hibernate don't get by default the "property" name?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 4:50 am 
Newbie

Joined: Fri Aug 05, 2005 3:35 am
Posts: 4
Without the column attribute Hibernate by default uses the property name as the column name.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 4:54 am 
Beginner
Beginner

Joined: Wed Jun 08, 2005 10:01 am
Posts: 22
Location: Italy
Hi!,

By default Hibernate looks for a database column with the property name.
In case of difference between the name of your column and the name of your propertyName, use the tag COLUMN.

Bye,
nic


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.