Hi,
This might be topics for https://issues.apache.org/jira/browse/OAK-11 or
sub-issues thereof.
Michael
On 16.10.12 15:39, Mete Atamel wrote:
> Hi,
>
> I have 2 questions on MicroKernel add/set property that MicroKernel
> JavaDoc does not seem to answer.
>
> 1- What's the difference between adding a property vs. setting a property?
> Are the two following commits basically the same?
>
> mk.commit("/", "+\"a/key1\" : \"value1\"", null, null);
> mk.commit("/", "^\"a/key1\" : \"value1\"", null, null);
>
>
> Or are there scenarios where adding a property acts differently than
> setting a property?
>
> 2- Is adding a property twice supposed to work or is it supposed to throw
> a MicroKernelException? For example, this seems to work with
> MicroKernelImpl but is it supposed to?
>
> mk.commit("/", "+\"a/key1\" : \"value1\"", null, null);
> mk.commit("/", "+\"a/key1\" : \"value1\"", null, null);
>
> What about setting a property twice?
>
>
> Thanks,
> Mete
>
>
|