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?
|