jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edgar Merino <donvo...@gmail.com>
Subject Plain JCR XPATH queries
Date Fri, 28 Nov 2008 13:05:32 GMT
Hello once again,

    I was wondering if it's possible to create queries against the 
ObjectContentManager without specifying any of the ocm properties (like 
classname). Currently, the xpath query: "//nodePath[@nodeProperty = 
'test']", on the mapped object:

public class SomeObject {
    @Field(path=true) String path;
    @Field private String nodeProperty;
    SomeObject() {
       this.path = "nodePath";
    .... (getters and setters)


org.apache.jackrabbit.ocm.exception.IncorrectPersistentClassException: Node type: nt:unstructured
has no descriptor.
     at org.apache.jackrabbit.ocm.mapper.impl.AbstractMapperImpl.getClassDescriptorByNodeType(AbstractMapperImpl.java:188)
     at org.apache.jackrabbit.ocm.manager.objectconverter.impl.ObjectConverterImpl.getObject(ObjectConverterImpl.java:293)
     at org.apache.jackrabbit.ocm.manager.impl.ObjectContentManagerImpl.getObjects(ObjectContentManagerImpl.java:622)

    That query is supposed to work when working directly with the jcr 
repository, is it possible to make it work too with ocm?

Thanks in advance,
Edgar Merino

View raw message