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(uniqueconstraint...@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.