-->
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.  [ 2 posts ] 
Author Message
 Post subject: Names of Table, Class and hbm file
PostPosted: Wed Nov 19, 2003 1:53 am 
Newbie

Joined: Mon Nov 17, 2003 2:43 am
Posts: 10
Should the names of the Table, the bean that binds to this table and the mapping xml file name necessariliy be the same.

I generated my classes and hbm file using the ddl2hbm tool that comes with hibernate extensions and it generated the classes and hbm file name same as the table names. Can the names of class and hbm file be changed?

For example: If I have a table TBL_ISD_CODE should my bean name be TblIsdCode and the mapping name be TblIsdCode.hbm.xml mandatorily or can I have a different name form my class and the hbm file and simply correct my hbm file for that.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 19, 2003 1:56 am 
Senior
Senior

Joined: Tue Sep 23, 2003 8:18 am
Posts: 137
Location: Johannesburg, South Africa
They can all be different. Though I would say it is a good idea to keep them the same, or very similar, for readability and traceability. :)

-G


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.