Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5adeb5e

Browse files
committed
[FIXE] 2 variables can be generated if the association has 2 ends
Example: http://puu.sh/eBBkT/8a6217865a.png
1 parent 8e70ece commit 5adeb5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

JavaCodeGenerator.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ define(function (require, exports, module) {
499499
if (asso.end1.reference === elem && asso.end2.navigable === true) {
500500
this.writeMemberVariable(codeWriter, asso.end2, options);
501501
codeWriter.writeLine();
502-
} else if (asso.end2.reference === elem && asso.end1.navigable === true) {
502+
}
503+
if (asso.end2.reference === elem && asso.end1.navigable === true) {
503504
this.writeMemberVariable(codeWriter, asso.end1, options);
504505
codeWriter.writeLine();
505506
}
@@ -581,7 +582,8 @@ define(function (require, exports, module) {
581582
if (asso.end1.reference === elem && asso.end2.navigable === true) {
582583
this.writeMemberVariable(codeWriter, asso.end2, options);
583584
codeWriter.writeLine();
584-
} else if (asso.end2.reference === elem && asso.end1.navigable === true) {
585+
}
586+
if (asso.end2.reference === elem && asso.end1.navigable === true) {
585587
this.writeMemberVariable(codeWriter, asso.end1, options);
586588
codeWriter.writeLine();
587589
}

0 commit comments

Comments
 (0)