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!!
|