Does an entity have access to an Embedded
of its Embedded
object? Eg:
@Embeddable
public class Address {
@Embedded
protected AddressResearchChangeActivity activity;
}
public class ClaimantAddress {
@Embedded
private Address address;
}
So can ClaimantAddress
access the AddressResearchChangeActivity
?
And when we save ClaimantAddress
will the data of AddressResearchChangeActivity
also be saved?
Embedded objects are just a way to group several fields inside an entity. When you save an entity, everything is saved in the entity, including all the embedded objects (and their sub-embedded objects).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.