[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5950) Make @UniqueConstraint inheritable
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Tue Apr 10 04:59:52 EDT 2012
[ https://hibernate.onjira.com/browse/HHH-5950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46218#comment-46218 ]
Emmanuel Bernard commented on HHH-5950:
---------------------------------------
I still think it's bad-ish but if someone :
- writes a unit test (that's in the pull request already)
- implements the fix (but marking the **annotation** as inherited is nto good enough, the code must look up etc
- writes a doc with all the limitations
I guess we could allow it.
> Make @UniqueConstraint inheritable
> ----------------------------------
>
> Key: HHH-5950
> URL: https://hibernate.onjira.com/browse/HHH-5950
> Project: Hibernate ORM
> Issue Type: New Feature
> Components: annotations
> Affects Versions: 3.6.1
> Reporter: Manuel Bernhardt
>
> It would be really nice to be able to define a @UniquenessConstraint in a @MappedSuperclass so that all subclasses carry this constraint. Right now, the following constraint is ignored:
> @MappedSuperclass
> @Table(uniqueConstraints = {@UniqueConstraint(name="inheritedConstraint", columnNames = {"matter", "value"})})
> public class Space { ... }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list