-->
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: SQLServer Tables with Underscore
PostPosted: Thu Feb 10, 2005 1:25 pm 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
Hi, I am using the hibernate 3.0 Alpha tools and the jtds1.0.1driver to access MS SQLServer. I ran the "Artifact Generation" tool, which runs and eventually gives me a duplicate import error for a table I'll call "ItemPrice". I checked the database and there happens to be two tables there, "Item_Price" and "ItemPrice". So it seems the generator is removing the underscore from the table name leading it to believe there are two tables name "ItemPrice".

Is there a setting I can change somewhere that would take care of this? If not I would glady modify the velocity template or class handling this underscore removal if someone could point me in the right direction to do that (which files).

Thanks for any help given.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 10, 2005 8:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
There is a naming strategy class that provides the naming conversions etc. You will be able to supply an alternative once we get that area of the GUI tool interfaces.


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.