[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4414) enrich UniqueConstraint with property name
Manuel Darveau (JIRA)
noreply at atlassian.com
Fri Oct 22 11:50:48 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38854#action_38854 ]
Manuel Darveau commented on HHH-4414:
-------------------------------------
No that UniqueConstraint does have a "name" attribute should this feature be looked again?
I checked the code and it looks as simple as modifying org.hibernate.mapping.UniqueKey.sqlConstraintString. Maybe we need to add a method on dialect to check if constraint naming is supported (isUniqueConstraintNamingSupported?).
However, I am not sure if all vendors place the constraint name between the "unique" and the "( column1, column2, ...)".
> enrich UniqueConstraint with property name
> ------------------------------------------
>
> Key: HHH-4414
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4414
> Project: Hibernate Core
> Issue Type: Improvement
> Components: annotations
> Reporter: Steve Ebersole
> Priority: Trivial
>
> To be able in annotation to give uniqueConstraint exact database name, there is need to add field java.lang.String name(); to annotation class UniqueConstraint in similar way like in index is.
--
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