-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hibernate handling of dynamically created tables
PostPosted: Sun May 27, 2007 4:57 am 
Beginner
Beginner

Joined: Thu Mar 29, 2007 11:57 am
Posts: 27
Hello,

I have an application where the users are able to import new data to the database. For each import, a new table is created in the database by a stored procedure. So I have a "dynamic table structure".

Of course I have tables such as user management whose structure never changes. For this tables I have mapping files and Java objects so that I can handle these things using Hibernate.

As far as I know until now, I need a mapping file for every object and table. Perhaps I am wrong? Is it possible to map the dynamically created tables? The problem which I see is that I am not able to have a corresponding Java class to the new created tables an also no corresponding mapping file.
A hint for the experts: The tables which are created by the users all have the same structure, this never changes (There are only two columns). Perhaps there is a way to handle them with Hibernate.
Thanks for your help!

Regards,
Thorsten


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 1:37 am 
Beginner
Beginner

Joined: Thu Mar 29, 2007 11:57 am
Posts: 27
No Idea or is that kind of mapping impossible?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 5:33 am 
Beginner
Beginner

Joined: Thu Mar 29, 2007 11:57 am
Posts: 27
I am still searching for a solution for this problem... Perhaps you can help me!

Best regards,
Thorsten


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 7:30 am 
Newbie

Joined: Wed Jul 25, 2007 4:10 pm
Posts: 4
Yes you can using the dynamic-map.

You will have to generate the xml mapping files programatically from the database jdbc metadata.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 31, 2007 7:01 am 
Beginner
Beginner

Joined: Thu Mar 29, 2007 11:57 am
Posts: 27
javamark wrote:
Yes you can using the dynamic-map.

You will have to generate the xml mapping files programatically from the database jdbc metadata.


Thanks for your answer!
Can you tell me what the dynamic-map is and where I get futher information on this topic?

Best regards,
Thorsten


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