Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Defining UniqueConstraint on MappedSuperClass fails with NPE [1]
@MappedSuperclass
@Table(uniqueConstraints={@UniqueConstraint(columnNames=
)})
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