[
https://issues.jboss.org/browse/SEAMJCR-21?page=com.atlassian.jira.plugin...
]
Simon Gunzenreiner commented on SEAMJCR-21:
-------------------------------------------
Sorry ..
Using clazz.getFields() is obviously not the right approach, but still, mapping parent
field / methods would be very nice. I am looking into a solution ...
Properties from parent class should be mapped as well
-----------------------------------------------------
Key: SEAMJCR-21
URL:
https://issues.jboss.org/browse/SEAMJCR-21
Project: Seam JCR
Issue Type: Enhancement
Components: OCM
Affects Versions: 3.0.0.Beta1
Reporter: Simon Gunzenreiner
OCMMappingStore.map() currently does not map inherited fields, due to considering only
fields defined on the given class. I suggest to use clazz.getFields() instead of
clazz.getDeclaredFields().
Also, this behaviour is not in-line with the usage of clazz.getMethods(), which takes
into account the accessor methods of parent classes (correct behaviour).
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira