[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-537?page=co...
]
Sebastian Mangels commented on ANN-537:
---------------------------------------
I think I now ran into some similar problem with embedded classes. In this case you also
have one property and multiple columns.
Though the @Column Tag works fine within the embedded class, it leads to a problem:
Generally the comments in the embedded class are correct, but they are missing the point
to describe in what way the embedded class might be used.
As an example you could think of a "person" which has two address-properties
"invoiceAddress" and "deliveryAddress" both represented by an embedded
class "Address". In both cases comment annotations would be correct in a way,
that the street is the name of the street, and that the zip-code denotes the zip-code of
the city or area.
But the comments for delivery and invoice address would be exactly the same. Not ideal. Im
thinking of a way to achieve this with CommentPrefix or CommentSuffix annotation, but
that's only a rough Idea. I will give ColumnOrFormula a thought, but it will not fix
the problem mentioned. Because in the end the commented embedded class is correctly
commented. It only misses additional information on the way it is used.
I will put some more thought into that.
Anyway, I think it would be a great improvement if at least @comment would be available.
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira