-->
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: 1 Class mapping to 2 tables
PostPosted: Thu Jul 20, 2006 3:07 am 
Newbie

Joined: Wed Jun 28, 2006 5:06 am
Posts: 4
Location: The Netherlands
Here's the problem.

We have a webapp in which we can enter data (Timesheets), no problem there. When the user is finished he saves the timesheet in our database. Afterwards he can change the timesheet etc. When he is really finished he submits his timesheet and then the timesheet needs approval of his supervisor.

However no the problem occurs when the timesheet is approved by his supervisor the timesheet needs to me transferred to another database. (We have partitioned data, approved data is in another database then 'draft' data).

We can access the other database from our own schema, so from our point-of-view it is just storing our object in another table. However it is giving us trouble.

We tried different solutions each creating their own problems. Currently we are deciding if we would need plain JDBC for that solution, however it would be nice if we could do it with hibernate.


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.