jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kenclark <kencl...@snet.net>
Subject Re: Problem with node.checkin() in same transaction node was created
Date Mon, 22 Sep 2008 20:40:06 GMT

>From the first link (http://markmail.org/message/2alwjclh6kecpbdn), there is
this statement:

"When you first create a node that is versionable and set properties on it,
you call save on the node. Then the base version of the node has that
property value. "

However, this is not what I see from the root version.  The root version
does have a jcr:frozenNode child, but that child does not have the property
on it that I set on the versioned Node.

After the root version, the property does show up on the frozenNode child.

Also, this conflicts with (if I understand them correctly) what Brett and
Julian are saying about the root version, which is really just a starting

Thus, there really is no "first version" created upon save of the
mix:versionable node, at least if what is meant by first version is the
initial copy of the node.  There has to be a checkin().  Or am I still being


Alexander Klimetschek wrote:
> see my links
> On Mon, Sep 22, 2008 at 6:45 PM, kenclark <kenclark@snet.net> wrote:
>> So then the correct way to handle adding the initial state of the nt:file
>> node is to do a checkin() immediately after the save, as I have in my
>> original code snippet?  (Or should I do a checkout() first even though
>> this
>> is a new node?)

View this message in context: http://www.nabble.com/Problem-with-node.checkin%28%29-in-same-transaction-node-was-created-tp19601525p19616042.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message