Beginner |
|
Joined: Wed Apr 26, 2006 4:40 am Posts: 24
|
Is it possible to use property values in hibernate mappings, which have been defined in the hibernate.properties file?
Sample hibernate.properties:
----------
current_db = my_db
----------
I tried to write a mapping:
----------
...
<class name="de.bla.bla.Clasz" table = "{$current_db}.clasz">
...
----------
but it did not work. The part between the {} brackets is ignored. I think that some kind of parsing is going on here, but I don't know how to tell the parser of the mapping document to replace that part with the value of the property.
|
|