jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: What about performance when getting newest version of a node
Date Wed, 16 Jul 2008 09:21:33 GMT
Julian Reschke wrote:
> Michael Wechner wrote:
>> IIUC in the most simple case one can do
>> node.getVersionHistory().getRootVersion()
>> in order to get the "newest" (most recent) version, right?
> No, that would be the oldest one, me thinks.
> I think what you need is:
> node.getBaseVersion().

that's not 100% correct either. this give you the version this node is based on. 
but that doesn't guarantee that this is the newest one. that base version may 
have successor versions that are newer.


View raw message