Change By: Brett Meyer (17/Oct/12 2:56 PM)
Description: Test case: o.h.test.annotations.embedded.Address & Country.

{code}
@Embeddable
public class
Address  is a FIELD access type and is expected to use DirectPropertyAccessor  implements Serializable {
.   However since ..
 Country  is annotated with  country;
... (no getters or setters)
}
{code}

{code}
 @ Embeddable
@
AccessType("property")
public class Country implements Serializable {
...
}
{code}

When metamodel's Binder creates the AttributeBinding for Address#country
,  the binding is passed the access type of Country's attributeSource.  Therefore, when  Address  uses #country is accessed, the  PROPERTY access  (BasicPropertyAccessor)  type is attempted .   Since Country has no getters, it fails.

Should an attribute's class's @AccessType override that of the containing entity?  Or, should Binder use the parent container's access type for all attributes?
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira