HHH-11101 - Missing unique constraint for many-to-many with unique=true in list mapping

(cherry picked from commit 9cf4fecbfe)
This commit is contained in:
Andrea Boriero 2016-09-14 15:43:42 +01:00 committed by Gail Badner
parent 9c51d269db
commit 33b649e369
2 changed files with 10 additions and 0 deletions

View File

@ -71,6 +71,11 @@ public class PluralAttributeElementSourceBasicImpl
return !jaxbElement.isNotNull();
}
@Override
public boolean isUnique() {
return jaxbElement.isUnique();
}
@Override
public SizeSource getSizeSource() {
return Helper.interpretSizeSource(

View File

@ -66,6 +66,11 @@ public class PluralAttributeElementSourceManyToManyImpl
return null;
}
@Override
public boolean isUnique() {
return jaxbManyToManyElement.isUnique();
}
@Override
public String getFormulaAttribute() {
return jaxbManyToManyElement.getFormulaAttribute();