Joined: Wed Nov 24, 2004 11:32 pm Posts: 1
|
[b]Hibernate version:[/b] 2.1.6
I would like to know if it's possible to have properties from hibernate.properties or some other location to be subsituted in mapping files.
instead of :
<class
name="my.class.Name"
table="tablename"
schema="schemaname"
...
I want to be able to do:
<class
name="my.class.Name"
table="tablename"
schema="${my.propertyfile.schemaname}"
...
Is this possible to bind this at runtime? I can do the subsitution at compile time using XDoclet and Ant, but I would rather define it in a separate property file and just have to change the value in one place without re-compiling.
Thanks!
|
|