Here's what I'm trying to do:
I have a class (CW1) and a mapping file(CW1.hbm.xml) with the table mapping like so:
Code:
<class name="CW1" table="Y2K.CW100039">
I want to be able to change the table to "Y2K.CW100654" at runtime because we have several tables with different CW1... names to represent special events we hold and I'm developing an application to dynamically insert registration info.
I can't map the tables traditionally becuase the "CW1XXXXX" name is ever expanding...meaning they are always adding new events.
Is there a way to do this? Examples?
*Add on: I should also mention that I'm using the Spring/Hibernate framework if that makes a difference or not.