From noreply at atlassian.com Tue Jan 15 05:30:56 2008 Content-Type: multipart/mixed; boundary="===============0371158382878535731==" MIME-Version: 1.0 From: Peter Hilton (JIRA) To: hibernate-issues at lists.jboss.org Subject: [hibernate-issues] [Hibernate-JIRA] Commented: (ANN-537) Support @Comment or column attribute on @Table and @Column Date: Tue, 15 Jan 2008 04:30:55 -0600 Message-ID: <111713147.1200393055733.JavaMail.j2ee@atlassian01.managed.contegix.com> In-Reply-To: 133907243.1169136404232.JavaMail.j2ee@atlassian01.managed.contegix.com --===============0371158382878535731== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-537?pag= e=3Dcom.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action= _29310 ] = Peter Hilton commented on ANN-537: ---------------------------------- Meanwhile, I have a work-around: generate the HTML documentation and then u= se XSLT to add the column descriptions. First, I define the comments in an XML file, where the id attributes are ta= ble names and column names. Primary key
Then I transform each generated table_name.html file with the following XSL= 2.0 stylesheet. XSL version 2 is required, to have multiple source documen= ts.

The easiest way to run this is to use Saxon-B 9.0 (http://saxon.sourceforge= .net/) and the following Ant task. Also, while I am at it, I added templates to the XSL stylesheet to replace = the HTML LINK element so I can point to my own stylesheet. > Support @Comment or column attribute on @Table and @Column > ---------------------------------------------------------- > > Key: ANN-537 > URL: http://opensource.atlassian.com/projects/hibernate/b= rowse/ANN-537 > Project: Hibernate Annotations > Issue Type: Improvement > Components: binder > Affects Versions: 3.2.1 > Reporter: Max Rydahl Andersen > > with hbm2ddl and hbm2doc its a shame that Annotation does not support set= ting a comment on table and columns. -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============0371158382878535731==--