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