jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Lombart (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (JCR-1537) ClassDescriptor.hasIdField() fails if id is declared in upper class
Date Wed, 21 May 2008 20:49:55 GMT

     [ https://issues.apache.org/jira/browse/JCR-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christophe Lombart reassigned JCR-1537:
---------------------------------------

    Assignee: Christophe Lombart

> ClassDescriptor.hasIdField() fails if id is declared in upper class
> -------------------------------------------------------------------
>
>                 Key: JCR-1537
>                 URL: https://issues.apache.org/jira/browse/JCR-1537
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-ocm
>    Affects Versions: 1.5
>         Environment: Mac OS X, JVM 1.5
>            Reporter: Stephane Landelle
>            Assignee: Christophe Lombart
>         Attachments: jackrabbit-ocm.patch
>
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message