Hi,

I tried to do JCR query in my application as following:
HierarchyManager hm = MgnlContext.getHierarchyManager("data");
            QueryManager qm = hm.getQueryManager();
            Query query =
                    qm.createQuery("SELECT * FROM  WebsiteProfile  WHERE 
programId = 3266 ", Query.SQL);
Collection<Content> resultsWs = query.execute().getContent();

And the resultsWs was empty. But the same query executed in 
AdminCentral/tools/JCR query did return the result I needed.  

So, what could be the issue? anything I need configure to make adminCentral and 
my program to return the same result on the same query?

Any help will be appreciated!

Thanks

Xin

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=a6b0fe9a-923a-4f4b-8b61-a4a15f0a9aed


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to