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
|