jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Müller <thomas.muel...@day.com>
Subject Re: [jr3] EventJournal / who merges changes
Date Fri, 26 Feb 2010 12:43:04 GMT
Hi Ian,

Could you describe your use case?

> probability of conflict when updating a multivalued property is reduced

What methods do you call, and how should the conflict be resolved?
Example: if you currently use the following code:

1) session1.getNode("test").setProperty("multi", new String[]{"a", "b"},..);
2) session2.getNode("test").setProperty("multi", new String[]{"d", "e"},..);
3) session1.save();
4) session2.save();

Then that would be a conflict. How would you resolve it? One option is
to silently overwrite in line 4.

Regards,
Thomas

Mime
View raw message