package com.captechconsulting.facade.v1_0.data; import com.captechconsulting.facade.v1_0.validators.Alphabetic; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import javax.validation.Valid; public class LocationVO { private Long id; @Alphabetic private String name; @Valid private AddressVO address; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public AddressVO getAddress() { return address; } public void setAddress(AddressVO address) { this.address = address; } @Override public boolean equals(Object obj) { return EqualsBuilder.reflectionEquals(this, obj); } @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }