*/
@JoinColumn (name = "contact_id", nullable = false, updatable = false, unique = true)
@OneToOne (targetEntity = UserContact.class, optional = false)
- private Contact contact;
+ private Contact userContact;
/**
* Account status
@Override
public void copyAll (final User user) {
// Copy also contact data
- this.getContact().copyAll(user.getContact());
+ this.getUserContact().copyAll(user.getUserContact());
// Copy other data
this.setUserConfirmKey(user.getUserConfirmKey());
}
@Override
- public Contact getContact () {
- return this.contact;
+ public Contact getUserContact () {
+ return this.userContact;
}
@Override
- public void setContact (final Contact contact) {
- this.contact = contact;
+ public void setUserContact (final Contact userContact) {
+ this.userContact = userContact;
}
@Override