Class Contact
- java.lang.Object
-
- org.hibernate.testing.orm.domain.contacts.Contact
-
@Entity public class Contact extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContact.Genderstatic classContact.Name
-
Constructor Summary
Constructors Constructor Description Contact()Contact(java.lang.Integer id, Contact.Name name, Contact.Gender gender, java.time.LocalDate birthDay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Address>getAddresses()java.time.LocalDategetBirthDay()Contact.GendergetGender()java.lang.IntegergetId()Contact.NamegetName()java.util.List<PhoneNumber>getPhoneNumbers()voidsetAddresses(java.util.List<Address> addresses)voidsetBirthDay(java.time.LocalDate birthDay)voidsetGender(Contact.Gender gender)voidsetId(java.lang.Integer id)voidsetName(Contact.Name name)voidsetPhoneNumbers(java.util.List<PhoneNumber> phoneNumbers)
-
-
-
Constructor Detail
-
Contact
public Contact()
-
Contact
public Contact(java.lang.Integer id, Contact.Name name, Contact.Gender gender, java.time.LocalDate birthDay)
-
-
Method Detail
-
getId
public java.lang.Integer getId()
-
setId
public void setId(java.lang.Integer id)
-
getName
public Contact.Name getName()
-
setName
public void setName(Contact.Name name)
-
getGender
public Contact.Gender getGender()
-
setGender
public void setGender(Contact.Gender gender)
-
getBirthDay
public java.time.LocalDate getBirthDay()
-
setBirthDay
public void setBirthDay(java.time.LocalDate birthDay)
-
getAddresses
public java.util.List<Address> getAddresses()
-
setAddresses
public void setAddresses(java.util.List<Address> addresses)
-
getPhoneNumbers
public java.util.List<PhoneNumber> getPhoneNumbers()
-
setPhoneNumbers
public void setPhoneNumbers(java.util.List<PhoneNumber> phoneNumbers)
-
-