@@ -117,7 +117,7 @@ public CompileContext map(Object entity, int horizon) {
117
117
// add all the relationships we know about. This includes the relationships that
118
118
// won't be modified by the mapping request.
119
119
for (MappedRelationship mappedRelationship : mappingContext .getRelationships ()) {
120
- LOGGER .debug ("context-init: ($ {})-[:{}]->($ {})" , mappedRelationship .getStartNodeId (),
120
+ LOGGER .debug ("context-init: ({})-[:{}]->({})" , mappedRelationship .getStartNodeId (),
121
121
mappedRelationship .getRelationshipType (), mappedRelationship .getEndNodeId ());
122
122
compiler .context ().registerRelationship (mappedRelationship );
123
123
}
@@ -980,11 +980,9 @@ private void reallyCreateRelationship(CompileContext ctx, Long src, Relationship
980
980
relBuilder .relate (src , tgt );
981
981
LOGGER .debug ("context-new: ({})-[{}:{}]->({})" , src , relBuilder .reference (), relBuilder .type (), tgt );
982
982
983
- if (relBuilder .isNew ()) { //We only want to create or log new relationships
984
- ctx .registerTransientRelationship (new SrcTargetKey (src , tgt ),
985
- new TransientRelationship (src , relBuilder .reference (), relBuilder .type (), tgt , srcClass ,
986
- tgtClass )); // we log the new relationship as part of the transaction context.
987
- }
983
+ ctx .registerTransientRelationship (new SrcTargetKey (src , tgt ),
984
+ new TransientRelationship (src , relBuilder .reference (), relBuilder .type (), tgt , srcClass ,
985
+ tgtClass )); // we log the new relationship as part of the transaction context.
988
986
}
989
987
990
988
/**
0 commit comments