jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "g.reinhart" <greinhart....@googlemail.com>
Subject Re: OCM, queries and version history
Date Mon, 09 Feb 2009 17:48:36 GMT


Christophe Lombart wrote:
> 
> There is a workaround but this is not the ideal solution :
> Make your own jcr query to get versions (as explained in the jcr
> specification - see 8.2.2.2) and get the object with the ocm method
> getObject(String path, String versionName)
> 

To make your own jcr query on MyObject.class classes, you can use the
QueryManager  ?

I don't thing this king of code would work : 

		QueryManager queryManager = ocm.getQueryManager();
		Filter filterChange = queryManager.createFilter(MyObject.class );
		filterChange.setScope( "/jcr:system/jcr:versionStrorage//");


-- 
View this message in context: http://www.nabble.com/OCM%2C-queries-and-version-history-tp21459838p21918082.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message