Thanks for the reply but i didn't got what you want to say.. Below is the code that I am using for updation of version.
Node resNode = fileNode.getNode(JcrConstants.JCR_CONTENT); resNode.checkout(); resNode.setProperty(JcrConstants.JCR_MIMETYPE , mimeType); resNode.setProperty(JcrConstants.JCR_ENCODING, ""); resNode.setProperty(JcrConstants.JCR_DATA, inputStream); resNode.setProperty(JcrConstants.JCR_LASTMODIFIED, Calendar.getInstance()); resNode.save(); resNode.checkin(); So where will i restore the root version and checkin again. Please try to provide some example to make it more clear Thanks, Saumil "Tobias Bocanegra" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 07/30/2008 06:31 PM Please respond to [email protected] To [email protected] cc Subject Re: Can anyone explain me how to change version from 1.0 to 2.0 you restore to the root version and then the next checkin will create 2.0. regards, toby On 7/30/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > Whenever I am adding the revision version of the file . The > version changes from 1.0 to 1.1 . But in some situation I want the version > to change from 1.0 to 2.0 . Can anyone explain me how to do it? Code > snippet will help a lot. > > Thanks, > Saumil
