You have to get the version history and call addVersionLabel. Versions are nodes.. So they have names, paths, properties etc.
Check out. http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/javax/jcr/version/Versi onHistory.html#addVersionLabel(java.lang.String,%20java.lang.String,%20bool ean) Thanks, Carl Furst On 7/16/12 8:27 PM, "shilpa" <[email protected]> wrote: >Hi all, > >I want to know if I can tag a particular version. > I want to use JCR in my project and we have many hierarchical type tree >made of different type of nodes and we need to save a version after bunch >of >changes for staging or production. I want to know how can I tag the >particular version so that all the changes made for particular node and >its >children will be saved. > >Thanks!!! > > > >-- >View this message in context: >http://jackrabbit.510166.n4.nabble.com/How-to-tag-a-particular-version-tp4 >656006.html >Sent from the Jackrabbit - Users mailing list archive at Nabble.com. ********************************************************** MLB.com: Where Baseball is Always On
