-->
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.  [ 2 posts ] 
Author Message
 Post subject: Mapping During Runtime
PostPosted: Thu Oct 27, 2005 6:19 am 
Newbie

Joined: Thu Oct 27, 2005 4:07 am
Posts: 11
Hi,

for our application it will be necessary to create the mapping to the database during runtime, since metadata (databasetype, -name, -login, tablenames, columns) might nicht be available on compile-time (and might be changed by the user).
I get the impression that this could be possible with hibernate (but I am not sure) I want to if there is a tutorial about "Runtime Mapping" or where should I best search for information.

any hints?

thx

Peter


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 27, 2005 7:42 am 
Beginner
Beginner

Joined: Thu Jan 22, 2004 8:22 pm
Posts: 48
I've never seen the topic discussed bu I don't see any reason you couldn't generate the hibernate mapping documents at runtime before you create the session factory.

I'm wondering if you really mean runtime though. Is the database structure really going to change from run to run or could this generation be handle during installation. This way you could just include a JDBC program that would query the meta-data from the database and the user and generate the proper mappings.


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