I'm trying to figure out if there's a way to include/use substitution variables in Hibernate mapping files. For example, if I have the following mapping file:
Code:
<hibernate-mapping default-access="field">
<class name="com.fidelity.shares.leo.domain.eventmodel.Warning"
table="warning">
<id name="${standardIdName}" column="id" type="long">
<generator class="sequence">
<param name="sequence">warning_seq</param>
</generator>
</id>
<version name="version" column="version" />
</class>
</hibernate-mapping>
where I have created a variable in the <id name=""> attribute, can I somehow pass in a value to "standardIdName" via Hibernate properties or some other mechanism?