Skip to content
Permalink
Browse files

added checck for duplicate names in 1-1 associations with unique attr…

…ibutes
  • Loading branch information...
fjtheknight committed Jul 24, 2019
1 parent b7ac3a9 commit 3cd2d16f4f3787bf79b5eb3b6fb58928fc88ad2e
@@ -3,6 +3,7 @@ use constructor_AssociationAssignOptionalMany.ump;
use constructor_AssociationCreateOneToOne.ump;
use constructor_AttributeAssign.ump;
use constructor_AttributeAssignAutounique.ump;
use constructor_AttributeAssignUnique.ump;
use constructor_AttributeAssignDefaulted.ump;
use constructor_AttributeAssignLazy.ump;
use constructor_AttributeAssignList.ump;
@@ -75,6 +76,11 @@ class UmpleToJava {
hasBody = true;
#>><<@ UmpleToJava.constructor_AttributeAssignLazy >><<#
}
else if(av.getIsUnique())
{
hasBody = true;
#>><<@ UmpleToJava.constructor_AttributeAssignUnique >><<#
}
else
{
hasBody = true;
@@ -2,6 +2,7 @@ use constructor_AssociationAssignDefault.ump;
use constructor_AssociationCreateOneToOne.ump;
use constructor_AttributeAssign.ump;
use constructor_AttributeAssignAutounique.ump;
use constructor_AttributeAssignUnique.ump;
use constructor_AttributeAssignDefaulted.ump;
use constructor_AttributeAssignLazy.ump;
use constructor_AttributeAssignList.ump;
@@ -42,6 +43,11 @@ class UmpleToPhp {
hasBody = true;
#>><<@ UmpleToPhp.constructor_AttributeAssignLazy >><<#
}
else if(av.getIsUnique())
{
hasBody = true;
#>><<@ UmpleToPhp.constructor_AttributeAssignUnique >><<#
}
else
{
#>><<@ UmpleToPhp.constructor_AttributeAssign >><<#

0 comments on commit 3cd2d16

Please sign in to comment.
You can’t perform that action at this time.