-->
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.  [ 8 posts ] 
Author Message
 Post subject: set NamingStrategy for hbm2ddl
PostPosted: Wed Sep 07, 2005 5:17 pm 
Beginner
Beginner

Joined: Wed Mar 16, 2005 4:07 pm
Posts: 22
hi there,

i am using hbm2ddl with version hibernate-tools-3.1.0.apha5. how can i set the naming strategy (to ImprovedNamingStrategy or any other ones) for the ant task? i saw there was a setting for SchemaExport for hibernate2. can this be done in hibernate3?

thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 08, 2005 4:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
http://opensource2.atlassian.com/projec ... se/HBX-398

and in a few minutes its fixed...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 08, 2005 12:02 pm 
Beginner
Beginner

Joined: Wed Mar 16, 2005 4:07 pm
Posts: 22
thanks.

now i got another problem: hbm2ddl is not using the table name specified in the hbm.xml file, instead it's using the java class name.

e.g. my hbm.xml file looks like this:

<hibernate-mapping>
<class
name="foo.bar.BalanceBAttribute"
table="balance_battribute"
>

the generated ddl looks like this:

drop table BalanceBAttribute cascade constraints;
create table BalanceBAttribute (battribute_id....

max wrote:
http://opensource2.atlassian.com/projects/hibernate/browse/HBX-398

and in a few minutes its fixed...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 08, 2005 12:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
its this the only mapping of that table you have ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 08, 2005 12:25 pm 
Beginner
Beginner

Joined: Wed Mar 16, 2005 4:07 pm
Posts: 22
sorry it's an operational error (non-clean build). i apologize.

max wrote:
its this the only mapping of that table you have ?


Top
 Profile  
 
 Post subject: How to set the NamingStrategy in eclipse plugin
PostPosted: Wed Mar 01, 2006 10:04 am 
Newbie

Joined: Wed Mar 01, 2006 9:42 am
Posts: 4
It's almost the same question but for the schema export functionality in eclipse plugin in the hibernate console perspective.

When doing a schema export within the console perspective, how can I set the NamingStrategy to ImprovedNamingStrategy ?

I'm already setting my NamingStrategy in my code as explain in the docs:
http://www.hibernate.org/hib_docs/v3/re ... ngstrategy

But when I use the plugin, it uses the basic naming strategy.

_________________
Benjamin Francisoud


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 01, 2006 11:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no currently possible - add a feature request to jira.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Allow to specify a NamingStrategy to a console configuration
PostPosted: Wed Mar 01, 2006 12:23 pm 
Newbie

Joined: Wed Mar 01, 2006 9:42 am
Posts: 4
Done, see:
http://opensource2.atlassian.com/projec ... se/HBX-612

_________________
Benjamin Francisoud


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