openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-1046) Unique Constraint on MappedSupperClass causes NullPointerException
Date Wed, 22 Apr 2009 23:39:47 GMT
Unique Constraint on MappedSupperClass causes NullPointerException
------------------------------------------------------------------

                 Key: OPENJPA-1046
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1046
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
            Reporter: Pinaki Poddar
            Assignee: Pinaki Poddar
             Fix For: 2.0.0


Defining UniqueConstraint on MappedSuperClass fails with NPE [1]

@MappedSuperclass
@Table(uniqueConstraints={@UniqueConstraint(columnNames={"ATTR_NAME", "OWNER"})})
public abstract class Attribute<T> { 

While it is debatable a @Table annotation is appropriate for @MappedSuperClass, the situation
must be detected and warned more gracefully than a NPE.

Also investigate whether UniqueConstraint on a MappedSuperClass should be supported.


[1] http://n2.nabble.com/UniqueConstraint-in-a-MappedSuperclass-not-working-tc2633410.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message