-->
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.  [ 3 posts ] 
Author Message
 Post subject: [question] How to save multiple copies of an object?
PostPosted: Fri Feb 11, 2005 2:22 pm 
Newbie

Joined: Fri Feb 11, 2005 1:50 pm
Posts: 3
I'm not sure if this is a completely trivial question, but I can't see how to do it, so asking here is my last resort. Apologies in advance if I'm simply missing something obvious.

I have an application running on JBoss and developed in Struts. All the objects are saved in our mysql database with hibernate (using xdoclet to define the objects).

I have been asked to explore the possibility of saving the new records in two tables.

Example, I have an "Application" object that hibernate persists in an "Application" table....so far so good....

What I need to do is to save the same object in another table, say "tempApplication" in tha same database.

and I can't find a way of doing this......any suggestions will be very welcome.

Many thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 2:34 pm 
Newbie

Joined: Fri Feb 11, 2005 1:50 pm
Posts: 3
Hibernate version:
2

Name and version of the database you are using:
MySQL 4.0.21



I can provide the mappings and code if needed....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 14, 2005 7:08 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Manually copy the object

_________________
Emmanuel


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