Index: src/main/java/org/apache/jackrabbit/ocm/mapper/model/ClassDescriptor.java =================================================================== --- . (revision 647876) +++ . (working copy) @@ -288,7 +288,8 @@ * @return true if the class has an ID */ public boolean hasIdField() { - return (this.idFieldDescriptor != null && this.idFieldDescriptor.isId()); + return (this.getIdFieldDescriptor() != null && this + .getIdFieldDescriptor().isId()); } /**