[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-537) Support @Comment or column attribute on @Table and @Column

Edmundo de Andrade (JIRA) noreply at atlassian.com
Mon Apr 7 20:20:33 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29963 ] 

Edmundo de Andrade commented on ANN-537:
----------------------------------------

Following Emmanuel's ideas, I was wondering why not to try this approach:

@ColumnOrFormula(column=@j.p.Column, formula=@Formula, comment="...")

I think @ColumnOrFormula is an abstraction that fullfills the requirements of an hypothtical annotation @o.h.a.Column.
With just one annotation @ColumnOrFormula, we could comment not only columns but formulas too.

I believe we'll need an annotation to group ColumnOrFormula's:

@ColumnsAndFormulas(columnsAndformulas={@ColumnOrFormula(column=...), @ColumnOrFormula(@formula=)...})

What do you think?

PS: I didn't find any unit test for table comments inside Hibernate Annotations project. I would like to know if it's worth to create unit tests for new annotations (specially for column comments)? I am interested in contributing as I need this feature implemented as soon as possible.

> Support @Comment or column attribute on @Table and @Column
> ----------------------------------------------------------
>
>                 Key: ANN-537
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-537
>             Project: Hibernate Annotations
>          Issue Type: Improvement
>          Components: binder
>    Affects Versions: 3.2.1
>            Reporter: Max Rydahl Andersen
>         Attachments: Comment-Annotations-for-hibernate-annotations-3.3.0.ga.diff
>
>
> with hbm2ddl and hbm2doc its a shame that Annotation does not support setting 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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list