[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-95) Cannot create a unique constraint on columns belonging to both the superclass and the class
Olaf Lenzmann (JIRA)
noreply at atlassian.com
Fri Mar 2 10:41:35 EST 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-95?page=comments#action_26360 ]
Olaf Lenzmann commented on ANN-95:
----------------------------------
The issue as described in the forum entry is still unresolved as of 3.2.1GA: if one of the unique constraint cols is inherited from an abstract base class, the NPE occurrs. I'm using TABLE_PER_CLASS, so semantically this constraint makes sense (it's of course not possible for TABLE_PER_SUBCLASS to have DB-level unique constraints across cols from different entities in the inheritance hierarchy).
> Cannot create a unique constraint on columns belonging to both the superclass and the class
> -------------------------------------------------------------------------------------------
>
> Key: ANN-95
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-95
> Project: Hibernate Annotations
> Type: Bug
> Components: binder
> Versions: 3.1beta5
> Reporter: Emmanuel Bernard
> Assignee: Emmanuel Bernard
> Priority: Minor
> Fix For: 3.2.0.cr1
>
>
> http://www.jboss.com/index.html?module=bb&op=viewtopic&t=68664
> @Entity
> @Table(name="award_category_name_l10n",
> uniqueConstraints={
> @UniqueConstraint(columnNames={"award_category_id", "language_id"})
> }
> )
> public class AwardCategoryNameL10n extends AwardCategoryL10n { .. }
--
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