| Joined: Thu Feb 21, 2008 11:01 am
 Posts: 2
 | 
				
					| Hello,
 I would like to know how we could had a dynamic table name in hibernate.
 
 I've 10 environnements with 10 tables (with the same structure) with a specific name on each environnement. How i can place it in a properties file ?
 
 This is an example :
 
 <?xml version="1.0"?>
 <!DOCTYPE hibernate-mapping PUBLIC
 "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
 
 <hibernate-mapping package="fr.toto.domain">
 <class name="BonDeTravail" table="TAB_X1" schema="F_SW">
 <id name="numeroSecu" column="F_Id" > </id>
 <property name="pole" column='"NOM"' type="string" />
 </class>
 </hibernate-mapping>
 
 The name "TAB_X1" can be "TAB_N3" on other environnement .....
 
 
 Thanks.
 
 
 |  |