-->
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.  [ 1 post ] 
Author Message
 Post subject: Create Table / Alter Table on Runtime
PostPosted: Sun Jun 12, 2011 6:25 am 
Newbie

Joined: Sun Jun 12, 2011 5:44 am
Posts: 4
Hi,

I am quite new in using Hibernate, but unfortunately I am required to perform a quite challenging task.

Our Document Management application would like to have a capability to create / alter some profile tables on runtime. The idea is different departments' users may have to enter different information when they upload the documents. I understand that this could be achieved by a proper database design, without doing such complicated things on runtime. However, we would just like to explore this as an alternative.

I have been searching from the net a few days but all those answers didn't tell a complete solution. I am not demand an answer providing me the complete code, which is spoon feeding. But at least, I am looking for the total solution in high level.

It will be great if any hibernate master could tell me what is the API / command to create / alter tables on runtime, how to generate a corresponding hbm.xml file (or any replacement of hbm.xml here?), how to generate corresponding persistent class (I understand that we could use hashmap instead, but is it suitable in this case?), and any other things that I need to take note.

Many thanks in advance, and I wish to receive experts' guidance soon.
Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.