@Temporal (TemporalType.DATE)
private Date contactBirthday;
- /**
- * Cellphone number
- */
- @JoinColumn (name = "contact_mobile_number_id", referencedColumnName = "mobile_id", unique = true)
- @OneToOne (targetEntity = MobileNumber.class, cascade = CascadeType.ALL)
- private DialableMobileNumber contactMobileNumber;
-
/**
* City
*/
@Column (name = "contact_id", nullable = false, updatable = false)
private Long contactId;
+ /**
+ * Cellphone number
+ */
+ @JoinColumn (name = "contact_mobile_number_id", referencedColumnName = "mobile_id", unique = true)
+ @OneToOne (targetEntity = MobileNumber.class, cascade = CascadeType.ALL)
+ private DialableMobileNumber contactMobileNumber;
+
/**
* Flag whether this contact is user's own data
*/
/**
* Phone number
*/
- @JoinColumn (name = "contact_phone_number_id", referencedColumnName = "phone_id", unique = true)
+ @JoinColumn (name = "contact_landline_number_id", referencedColumnName = "landline_id", unique = true)
@OneToOne (targetEntity = LandLineNumber.class, cascade = CascadeType.ALL)
private DialableLandLineNumber contactPhoneNumber;
this.contactBirthday = contactBirthday;
}
- @Override
- public DialableMobileNumber getContactMobileNumber () {
- return this.contactMobileNumber;
- }
-
- @Override
- public void setContactMobileNumber (final DialableMobileNumber contactMobileNumber) {
- this.contactMobileNumber = contactMobileNumber;
- }
-
@Override
public String getContactCity () {
return this.contactCity;
this.contactPhoneNumber = contactPhoneNumber;
}
+ @Override
+ public DialableMobileNumber getContactMobileNumber () {
+ return this.contactMobileNumber;
+ }
+
+ @Override
+ public void setContactMobileNumber (final DialableMobileNumber contactMobileNumber) {
+ this.contactMobileNumber = contactMobileNumber;
+ }
+
@Override
public void setContactOwnContact (final Boolean contactOwnContact) {
this.contactOwnContact = contactOwnContact;