Hello,
I would like to store objects of the _same_ class to different tables, e.g. for providing some kind of containers on database level.
Example:
Table cars: Table with all cars.
Table modified_cars: Table with copies of cars from the above table which have been modified by a user. Cars in this table will be copied back to table cars at the end of each month.
Can I somehow specify a table name prefix when storing objects (in the above example "modified_")? Or do I better use different session factories for each container on the same database? Can I somehow reuse the mapping for the class in the second session factory though it may only contain one table name?
Can I copy objects from one container into another without problems?
Markus
|