@Node
public class Device {
@Id
private String id;
private String name;
@Relationship(type = "MANAGED_BY", direction = Relationship.Direction.OUTGOING)
private HostRelation manager;
}
@RelationshipProperties
@Getter
@Setter
public class HostRelation {
@RelationshipId
private String id;
private String type;
private String name;
@TargetNode
@ToString.Exclude
private DeviceManager deviceManager;
}
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class DeviceManager {
@Id
private String managerId;
private String name;
}
At first Im able to create relation but im not able to update TargetNode
target Device Manager im not able to update
im able to update type but not TargetNode