@Mixins(value=Person.Mixin.class) public interface Person extends HasIdentity
Modifier and Type | Interface and Description |
---|---|
static class |
Person.Mixin |
HasIdentity.HasIdentityMixin
IDENTITY_METHOD, IDENTITY_STATE_NAME
Modifier and Type | Method and Description |
---|---|
Association<Address> |
address() |
void |
amendAddress(String street,
String zipCode,
City city,
Country country) |
ManyAssociation<Person> |
children() |
void |
movedToNewAddress(String street,
String zipCode,
City city,
Country country,
Rent rent) |
Property<String> |
name() |
Association<Country> |
nationality() |
ManyAssociation<Address> |
oldAddresses() |
NamedAssociation<PhoneNumber> |
phoneNumbers() |
NamedAssociation<Person> |
relationships() |
Association<Person> |
spouse() |
identity
@UnitOfWorkPropagation(value=MANDATORY) void movedToNewAddress(String street, String zipCode, City city, Country country, Rent rent)
@UnitOfWorkPropagation(value=MANDATORY) void amendAddress(String street, String zipCode, City city, Country country)
Association<Country> nationality()
@Aggregated Association<Address> address()
@Optional Association<Person> spouse()
ManyAssociation<Person> children()
@Aggregated ManyAssociation<Address> oldAddresses()
NamedAssociation<Person> relationships()
@Aggregated NamedAssociation<PhoneNumber> phoneNumbers()