-->
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.  [ 6 posts ] 
Author Message
 Post subject: schemaupdate for one table drags in all referenced map files
PostPosted: Sat May 26, 2007 4:34 pm 
Beginner
Beginner

Joined: Thu May 17, 2007 2:41 pm
Posts: 48
Hi I am doing schema update using the SchemaUpdate class.

Due to programming environment constraints, I have to run the update thru command line. I believe the idea of doing update is so that you can update a single table with a single property. Howver, as I try this feature out, hibernate continues to throw exception because this table I want to update refers to an unmapped class. I can move to the next step by adding another map file, but then more and more unmapped classes get involved, and pretty soon, I am feeding the entire collection of map files. So that's no different from updating the entire database.

Am I missing something here? is there a way to get SchemaUpdate to just see these other map files without explicitly having to tack them as command line args? and without updating their tables as well?


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 27, 2007 10:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Since assoications affect the generated sql its hard to not have them there.

Until we add a mechanism for schemaupdate/export to only generate updates for a specific table/entity then you are out of luck.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 27, 2007 12:54 pm 
Beginner
Beginner

Joined: Thu May 17, 2007 2:41 pm
Posts: 48
I don't mean to make light of your product, but having used jdo, and successfully update single tables, I know it must be doable. for example, you can make the assumption that the other tables have no changes and automatically read out their existing schema from the database. wouldn't that be one way to achieve this?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 28, 2007 5:49 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
JDO is a spec, not an implementation ;)

Anyhow - it's opensource so feel free to come in and fix it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 28, 2007 1:22 pm 
Beginner
Beginner

Joined: Thu May 17, 2007 2:41 pm
Posts: 48
obviously I used one of the implementations. just don't want to start a pissing contest by mentioning names.

I posted a JIRA for this to see if other people are in agreement to having this feature.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 28, 2007 5:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i can tell you that it has been asked before.

so sure, other people want it - just noone bad enough to actually implement it.

_________________
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.  [ 6 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.