-->
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.  [ 3 posts ] 
Author Message
 Post subject: dynamic table creation
PostPosted: Fri Dec 02, 2005 7:59 pm 
Newbie

Joined: Thu Jul 15, 2004 1:07 pm
Posts: 9
Does Hibernate (2.1) support dynamic table creation? I have an app that will recieve an object defining a table structure that needs creation. A second object or collection will contain the data to populate the new table.

Jay


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 02, 2005 8:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Sure, whynot?

You can create a configuration at runtime using the mapping metamodel and then run schemaexport.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 03, 2005 6:45 pm 
Newbie

Joined: Thu Jul 15, 2004 1:07 pm
Posts: 9
Great. I'm going thru the api now, but it's little light on documentation.

Should I instantiate a new Mappings object, or let the Configuration getMappings() method provide me one? From there I plan on creating Table and Column objects to build the mapping.

However, once I do this, I'll have a table, but no Class associated to it (no persistable POJOs). I need to do batch loading into the table.

I'm still in the investigative stages for this "importing" of dynamic data. Perhaps straight JDBC would be more applicable here? Thoughts?

Jay


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