Hi All,
Anybody has ever used dynamic properties or expressions of the form
${} in hbm files. If yes, how to make hibernate know about the values of these expressions.
I am working on an existing 3-tier J2EE app which uses hibernate(3.3.2) along with other tech.
The application's data model has several tables & there are corresponding hibernate mapping xml (hbm) files.
Almost all of these files are using expression of the form ${} for class attribute.
For eg:
Code:
---------
<set name.......................>
<key ..> <column name.../> </key>
<one-to-many class="${someName}"/>
</set>
------------
Since its an existing app, I tried digging into the code but couldn't find how the app is letting hibernate know the location from where it can load the values of those expressions.
What I am trying to do is run the hbm2ddl SchemaExportTask using Ant on *.hbm.xml file and the Ant build is failing with an exception:
Schema text failed: Association references unmapped class: ${someName}Any help is appreciated.