rightManyToOne = new ManyToOne(); rightManyToOne.setName(rightFieldName); rightManyToOne.setSyntheticField(rightSynthetic); setCascade(leftRole, rightManyToOne); addRelationship(rightManyToOne, rightRelationships, rightAttributes.getManyToOne()); leftManyToOne = new ManyToOne(); leftManyToOne.setName(leftFieldName); leftManyToOne.setSyntheticField(leftSynthetic); setCascade(rightRole, leftManyToOne); addRelationship(leftManyToOne, leftRelationships, leftAttributes.getManyToOne());
rightManyToOne = new ManyToOne(); rightManyToOne.setName(rightFieldName); rightManyToOne.setSyntheticField(rightSynthetic); setCascade(leftRole, rightManyToOne); addRelationship(rightManyToOne, rightRelationships, rightAttributes.getManyToOne()); leftManyToOne = new ManyToOne(); leftManyToOne.setName(leftFieldName); leftManyToOne.setSyntheticField(leftSynthetic); setCascade(rightRole, leftManyToOne); addRelationship(leftManyToOne, leftRelationships, leftAttributes.getManyToOne());
rightManyToOne = new ManyToOne(); rightManyToOne.setName(rightFieldName); rightManyToOne.setSyntheticField(rightSynthetic); setCascade(leftRole, rightManyToOne); addRelationship(rightManyToOne, rightRelationships, rightAttributes.getManyToOne()); leftManyToOne = new ManyToOne(); leftManyToOne.setName(leftFieldName); leftManyToOne.setSyntheticField(leftSynthetic); setCascade(rightRole, leftManyToOne); addRelationship(leftManyToOne, leftRelationships, leftAttributes.getManyToOne());