Is it possible to set values in a hibernate.hbm.xml file from a properties file??
<class name="com.company.table" table="TABLE" schema="$PROP_VALUE">
<id name="id" type="integer">
<column name="ID"/>
<generator class="assigned" />
</id>
<property name="description" type="string">
<column name="DESC" length="100" />
</property>
</class>
I guess you are trying keep the schema configurable. One option would be to configure this schema as a part of JDBC parameter configuration (in JDBC URL) instead of doing this in every entity definition. Please note tha this will not work if you are referring to different schemas at the same time. Not sure if this is your case.