jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wechner <michael.wech...@wyona.com>
Subject Re: What about performance when getting newest version of a node
Date Wed, 16 Jul 2008 21:03:12 GMT
Marcel Reutegger schrieb:
> 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.

thanks for pointing this out

Cheers

Michael
>
> regards
>  marcel


Mime
View raw message