Hello,
I like the way xdoclet and schemaexport generates everything for me. But I have one bad feeling too, since a lot of of information is "hardcoded" in my source files.
Example:
If I would like to write a program that runs on MySql and Oracle. A certain field on the database should have type "longtext" on mysql and "clob" on oracle. How can I make this hint more generic?
Code:
* @hibernate.column
* name="xml"
* sql-type="longtext"
Is there a way to put placeholders into the xdoclet hints that are replaced during the ant build, something like this?
Code:
* @hibernate.column
* name="xml"
* sql-type="${longTextString.sqlType}"
I tried it, by simply making available the property
longTextString.sqlType to the ant task, but it did not work.
Salut,
Thomas