Hello all! I'm new to this maling list and to hibernate so please bear with me (meaning you can flame me but not roast me...). And now to business...
I noticed that the "@Column" annotation does not have a "description"
attribute. This is most saddening since such a description could be used in
many ways. for example:
1. The description could be used for documenting the database structure using
hibernate-tools.
2. The description could be pushed out to the database itself using "CREATE
table () description "This is a table to store customers" or the like. Some
database support this and will actually store the description for you which
makes it easier to use the database even if you don't have documentation for
it.
3. Many other ways of which I hadn't tought about (probably the most
interesting ones).
A few questions:
1. Is such a feature in the works ? Even if this feature will only be
supported on some of database engines the documentation could state so and it
would still be useful...
2. If a feature like this is not in the works would you like me to implement
it ? I'm a java developer and have had my own database persistency system
written in perl so I can handle a task like this. I would be able to do it
only for mysql tough because that is all I have now (maybe for postgresql
later on). Other people will need to implement it for other database drivers.
3. What about translations of such descriptions to other locales ? I need to
think about that some more and your ideas are welcome...
4. I would assume that if hibernate annotations would support it then first
the change should go in through hibernate core, then support should be added
in the XML files, then at the annotation level and finally at the tools
level. Am I right ? BTW: I noticed that <hbm2doc> already creates html pages
with "description" on them but the descriptions are empty.
Cheers,
Mark
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ hibernate-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
