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: "//[EMAIL PROTECTED] =
'test']", on the mapped object:
@Node
public class SomeObject {
@Field(path=true) String path;
@Field private String nodeProperty;
SomeObject() {
this.path = "nodePath";
}
.... (getters and setters)
}
throws:
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