jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NAO <Nerolie.Oa...@csiro.au>
Subject Checking for null reference properties
Date Mon, 02 Mar 2009 03:57:34 GMT

I have been trying to run a query to collect all the nodes where a reference
property has been set.

The SQL query string 

Query q = queryManager.createQuery("select * from ala:TypeA where
ala:typeBRef is not null",Query.SQL);


works where ala:typeBRef is defined as a string value, but if it has been
defined as a reference, the search returns no nodes regardless of what
getProperty returns.

Could someone please explain to me why this should be the case, and how I
can do a global search for the nodes where a reference link exists?


-- 
View this message in context: http://www.nabble.com/Checking-for-null-reference-properties-tp22281732p22281732.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message