From the link:
https://listman.redhat.com/docs/manuals ... _once.html
It seems I can map a class to two different tables (e.g. one is online and one is history table with same scheme).
The problem is if I insert records into the db, how can hibernate know where table to insert the data?
Here's my code of DAO that I'm using Hibnernate 3.1.2 and Spring 2:
quote.setId(1)
quote.setValue(AB);
getHibernateTemplate().add(quote);
Also, I have some cases to add with Collection of quote objects.
Thanks a lot!