In section 5.3 of the hibernate reference manual ("Mapping a class more than once") it describes how one can map the same class multiple times. For example, one might want to use the same class to pull information from a Contracts and a ContractsHistory table.
In my case, I want to load data into a staging table and then copy the data into the real table once the load is complete.
I'm thinking that I'll have to create a subclass of my entity that has no additional functionality and use that, but I thought I'd see if there was another way to do this.
Thanks!
David
|