jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JavaJ <ponfa...@yahoo.com>
Subject More questions about versioning
Date Wed, 16 Aug 2006 20:14:05 GMT

I have a couple of other questions about versioning:

1) Is there a way to "rollback" to a previous version?  I know that there is
a "restore" function, but from the spec, it looks like it just copies the
state of the versioned node into the node object.  What I'm interested in is
being able to rollback to a previous version V and then basically remove all
successor versions of V, making V the most recent version for the node.

2) What happens when you version a node with a reference property that
points to another node?  I assume that the only thing that gets versioned is
just the uuid of the referenced node?  So basically it doesn't keep the
state of the referenced node at the time you versioned the node.  For
example, if you have NodeA with a property R1 that references NodeB.  You
modify and checkin a new version V1 of NodeA.  Next, you modify NodeB and
save it.  Then you modify and checkin a new version V2 of NodeA.  If you
then decide to restore NodeA to version V1 and get property R1, will the
referenced node contain the state of the current base version of NodeB or
its state when V1 was first created (e.g before you modified it)?  I assume
the former...
View this message in context: http://www.nabble.com/More-questions-about-versioning-tf2117527.html#a5839690
Sent from the Jackrabbit - Users forum at Nabble.com.

View raw message