@Index (
name = "contact_gender",
columnList = "contact_gender"
+ ),
+ @Index (
+ name = "contact_email_address",
+ unique = true,
+ columnList = "contact_email_address"
)
}
)
* Country code
*/
@JoinColumn (name = "contact_country_id", nullable = false)
- @OneToOne(targetEntity = CountryData.class, optional = false, fetch = FetchType.EAGER)
+ @OneToOne (targetEntity = CountryData.class, optional = false, fetch = FetchType.EAGER)
private Country contactCountry;
/**
* Fax number
*/
@JoinColumn (name = "contact_fax_number_id")
- @OneToOne(targetEntity = FaxNumber.class,cascade = CascadeType.ALL)
+ @OneToOne (targetEntity = FaxNumber.class, cascade = CascadeType.ALL)
private DialableFaxNumber contactFaxNumber;
/**