Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5
-
None
-
Mac OS X, JVM 1.5
Description
org.apache.jackrabbit.ocm.mapper.model.ClassDescriptor.hasIdField() looks up only current class and not the whole hierarchy, so it fails when the id field is declared in a upper class.
hasIdField should use getIdFieldDescriptor and not access idFieldDescriptor field directly, as follows :
public boolean hasIdField()
{ return (this.getIdFieldDescriptor() != null && this .getIdFieldDescriptor().isId()); }Please find patch enclosed.
Sincerely yours,
Stéphane Landelle