-->
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: Daily generating tables
PostPosted: Thu Nov 11, 2010 5:57 am 
Beginner
Beginner

Joined: Thu Jun 17, 2010 7:36 am
Posts: 26
Hello,

Im new and Ive got one important question:

Im working on a webapplication where user can register and use the webapplication.
Regarding one problem I have got two choices for a table structure:

I can either create everyday a new table with entries for users which want to create entries for this specific day

Or I can once create a table per user, where he can enter entries the day he wants to

My first question ist, what you would advice me?

My second question, even more important, is:
I use Hibernate with the Hibernate Mapping Files and POJOs, without Annotations. Now, no matter which option of the ones above I chose, I have to create automatically new tables while the webapplication is running.

Creating those tables is no problem, but how shall I create the mapping files and pojos while the project is running without writing them manually???
I was thinking about two Strings containing the content of a pojo and mapping file and then replace the relevant names (for example tablename) every time it is needed and then write it in one file and save it in the place it should be. I dont know a better solution. What do you think about this??

thank you!!


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.