OK, this might be obvious, but haven't used the OCM stuff before. So:
I have a class, let's call it "AddressImpl", which implements the
interface "Address". The Address interface does not have anything to
do with JCR data.
But I want to map the implementation AddressImpl to the JCR nodetype
"address". So:
/** @ocm.mapped jcrType="address" */
public class AddressImpl extends
org.apache.sling.jcr.ocm.AbstractMappedObject implements Address {
/** @ocm.field path="true"*/ private String path;
...
}
When building this, ClassDecriptorReader complains:
org.apache.sling.jcr.ocm.impl.ClassDescriptorReader Dropping class
com.example.AddressImpl: Interface class com.example.Address not
registered
org.apache.sling.jcr.ocm.impl.ClassDescriptorReader Removing dropped
classes from map
How do I "register" the Address interface, and why do I have to do it?
--
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Akersgata 16, N-0158 Oslo, Norway
+47 21 531941, ext 2070