Just to suggest to allow user can insert on the
configuration files (<project-name>-prefs.xml or the
corresponding properties file), so on the generated
*.hbm.file addional information can be generated, for
example:
<meta attribute"class-description"> Class
comments</meta>
<meta attribute"class-description"> Class
comments</meta>
It is easy to imagine a property like the above on the
*.xml preferences file:
<!-- For a given Table and ist class-->
<map>
....
<entry key ="class-description" value="Bla, bla, bla>
</map>
in a similar way for attributes:
<entry key ="attribute-description" value="Bla, bla, bla>
</map>
The solution of getting the comment information from
Database is good, but some times, you can't modify the
database information, but nevertheless you would like to
have a documented *.hbm.xml generated files and the
corresponding *.java (generated from the origianal *.hbm
files) in some automatic way.
No the solution I have found is to use XSL in order to
add such information, but you have mantain a lof of files.
With my suggestion, you have to mantain only one file.
Thanks,
David Leal