HHH-6563 : NullPointerException using annotations source if a unique constraint is not mapped with a constraint name
This commit is contained in:
parent
5ee60b1ca4
commit
446fcc6af8
|
@ -630,7 +630,7 @@ public class EntityClass extends ConfiguredClass {
|
||||||
|
|
||||||
AnnotationInstance[] uniqueConstraints = value.asNestedArray();
|
AnnotationInstance[] uniqueConstraints = value.asNestedArray();
|
||||||
for ( AnnotationInstance unique : uniqueConstraints ) {
|
for ( AnnotationInstance unique : uniqueConstraints ) {
|
||||||
String name = unique.value( "name" ).asString();
|
String name = unique.value( "name" ) == null ? null : unique.value( "name" ).asString();
|
||||||
String[] columnNames = unique.value( "columnNames" ).asStringArray();
|
String[] columnNames = unique.value( "columnNames" ).asStringArray();
|
||||||
UniqueConstraintSourceImpl uniqueConstraintSource =
|
UniqueConstraintSourceImpl uniqueConstraintSource =
|
||||||
new UniqueConstraintSourceImpl(
|
new UniqueConstraintSourceImpl(
|
||||||
|
|
Loading…
Reference in New Issue