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: How to generate a schema attribute in hbm?
PostPosted: Fri Oct 27, 2006 11:11 am 
Regular
Regular

Joined: Wed Mar 15, 2006 1:48 pm
Posts: 91
I noticed I can specify default_schema and default_category in hibernate property configuration. When I use Hibernate Tool 3.2b8 with MySQL 5 I noticed there is no schema attribute generated when I set default_schema="name". Only category attribute is generated in hbm file when I provide default_category="name".

I am wondering what the difference is between schema and category, and how can I generate a schema attribute? Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 27, 2006 11:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hibernate only generates schema/catalog info iif they are different from default_schema/default_catalog

so if you want them in the files don't specify a default one...and if you don't want them for a specific catalog/schema then specify the default ones.

_________________
Max
Don't forget to rate


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.