Hi,
In my database, name of tables that my software uses
vary on the year which we are working at..
For example:
in
2007, company uses:
TableA_07
TableB_07
in
2008, company creates new tables named as:
TableA_08
TableB_08
Only name varies,
However, if i map my Entity classes as
Code:
@Entity
@Table(name="TableA_07")
My entity classes will not be able to work at 2007, (when using TableA_08).
1) So, i must change TableNames whenever i need. How can i do that with Annotations? If i can not do this only by annotations, is there any way to combine XML mapping with Annotations?
2) Is there anyway out of deploying same ejbs twice for making different users work on different "Year's" tables at same time?
Thanks..