实体是否有权访问Embedded
其Embedded
对象?例如:
@Embeddable
public class Address {
@Embedded
protected AddressResearchChangeActivity activity;
}
public class ClaimantAddress {
@Embedded
private Address address;
}
那么可以ClaimantAddress
访问AddressResearchChangeActivity
吗?
而当我们保存ClaimantAddress
的时候,数据AddressResearchChangeActivity
也会被保存吗?