-->
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.  [ 4 posts ] 
Author Message
 Post subject: updating and validating schema
PostPosted: Sun Nov 21, 2004 5:38 am 
Newbie

Joined: Sun Nov 21, 2004 5:21 am
Posts: 14
In my application setup i want to update DB schama changes to the DB.

since i have hbm files for all the tables, i thought of using the UpdateSchema mechanism.

I saw there is no tool for validating the schema, so i want to write one of my own. but when i looked at the hibernate sources, i was surprise to see that it is difficult to do it, since the "tables" memeber in the Configuration class is private and there is no way to access it (even if i want to inherite from Configuration to add functionality)

why is it writen this way? it is also very difficult to add functionality to the ExportSchama from the same reasons....


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 21, 2004 10:13 am 
Regular
Regular

Joined: Tue Jan 27, 2004 12:22 pm
Posts: 103
Hibernate Tools has this feature.

_________________
Dencel
- The sun has never seen a shadow -


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 21, 2004 10:19 am 
Regular
Regular

Joined: Tue Jan 27, 2004 12:22 pm
Posts: 103
I am sorry, see chapter 15 of the hibernate documentation for the tools.
http://www.hibernate.org/hib_docs/reference/en/html/toolsetguide.html

_________________
Dencel
- The sun has never seen a shadow -


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 21, 2004 3:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
getTableMappings() will probably be public in H3.

But besides that you should be able to get to all the tables by going through all the class mappings...at least as a workaround.

_________________
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.  [ 4 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.