-->
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: Runtime – O/R mapping.
PostPosted: Wed Dec 08, 2004 2:14 am 
Newbie

Joined: Wed Dec 08, 2004 1:49 am
Posts: 4
We have the requirement like this. Runtime only we know the table name and list of fields in that table. Now we can mange using dynamic SQL generation tool to generate SQL query to insert and update dynamic table.

How to handle this in Hibernate

Thax million for you response. .


Top
 Profile  
 
 Post subject: Re: Runtime – O/R mapping.
PostPosted: Wed Dec 08, 2004 3:51 am 
Senior
Senior

Joined: Sat Jul 17, 2004 5:16 pm
Posts: 143
gilbert_staline wrote:
We have the requirement like this. Runtime only we know the table name and list of fields in that table. Now we can mange using dynamic SQL generation tool to generate SQL query to insert and update dynamic table.

How to handle this in Hibernate

Thax million for you response. .


I think mapping is config time / build time, not runtime... Correct me if wrong. Hibernate maps objects to tables. If you need a dynamic tool, you will nee to write one in JDBC (or find one somewhere). Chris


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 08, 2004 4:09 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
You can dynamic make xml file from database information and add it with
cfg.addFile("dynamic.hbm.xml")

regards


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.