Can two nodes be related to each other more than once
While still having issues with inconsistent transaction/saving functionality in my other thread. I also noticed another place where it isn't saving an ItemNeededForEvent.
If I have an Item node, say with values for "Ice" and I have an Event "MyParty" can I associate Ice to MyParty twice.
here is part of my ItemNeededForEvent relationship entity class
Code:
@RelationshipEntity(type = Event.ITEMS_NEEDED_FOR_EVENT)
public class ItemNeededForEvent implements Serializable, SocialMessageArg {
@GraphId
private Long nodeId;
private BigDecimal quantity;
@StartNode
@JsonIgnore
@Fetch
private Event event;
@EndNode
@Fetch
private Item item;
public ItemNeededForEvent() {}
public ItemNeededForEvent(Item item, Event event) {
this(item, event, null);
}
…..
}
Thanks
Mark