-->
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: How to map dynamically created table in Hibernate
PostPosted: Mon Dec 21, 2009 7:42 pm 
Newbie

Joined: Mon Dec 21, 2009 7:30 pm
Posts: 1
Hi, I am new to Hibernate. This is my first post in this forum.

I am using Hibernate in my application which is using MySQL as its database. I am creating tables dynamically based on the user selection and data availability. Usually, in Hibernate we create a configuration file seperately for each table. So, If we have an additional table in database which is not defined in Hibernate configurations, How to use that table in Hibernate?

How to do mapping for dynamically created tables in hibernate?

I would be really grateful, if any one can help me in solving my above issue. Its very urgent requirement. Kindly help me.

Sowmya


Last edited by SowmyaSV on Tue Dec 22, 2009 11:20 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: How to map dynamically created table in Hibernate
PostPosted: Mon Dec 21, 2009 8:22 pm 
Newbie

Joined: Mon Sep 29, 2008 7:18 pm
Posts: 5
I have a table in a mysql database that I need to change on the fly. I am handling this particular table manually (the CRUD commands are manually written in the java code) and use persistence for all the other tables in the database.

Unfortunately, the entity files are created at build-time and compiled into class files and installed into the jar before the application is run. I don't believe you can use persistence for tables that change structure - if it is possible, I'd be interested to know about it also!

Jordan


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.