Class Contact
- java.lang.Object
-
- info.ejava.examples.ejb.interceptor.bo.Contact
-
- All Implemented Interfaces:
Serializable
@Entity public class Contact extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private @Valid List<ContactInfo>
contactInfo
private int
id
private static org.slf4j.Logger
logger
private @NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Size(min=1,max=32,groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[A-Za-z0-9-\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([A-Z][a-z0-9-]+\\ *)+$",groups=PostNormalizedCheck.class) String
name
private String
normalizedName
-
Constructor Summary
Constructors Constructor Description Contact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ContactInfo>
getContactInfo()
int
getId()
String
getName()
private void
normalizeName()
void
setName(String name)
String
toString()
Contact
withName(String name)
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
id
private int id
-
name
@NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Size(min=1, max=32, groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[A-Za-z0-9-\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([A-Z][a-z0-9-]+\\ *)+$",groups=PostNormalizedCheck.class) private @NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Size(min=1,max=32,groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[A-Za-z0-9-\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([A-Z][a-z0-9-]+\\ *)+$",groups=PostNormalizedCheck.class) String name
-
normalizedName
private String normalizedName
-
contactInfo
@Valid private @Valid List<ContactInfo> contactInfo
-
-
Method Detail
-
normalizeName
private void normalizeName()
-
getId
public int getId()
-
getName
public String getName()
-
setName
public void setName(String name)
-
getContactInfo
public List<ContactInfo> getContactInfo()
-
-