package siena.base.test.model; import java.util.List; import siena.embed.EmbeddedMap; @EmbeddedMap public class Contact { public String name; public List<String> tags; public Contact(String name, List<String> tags) { this.name = name; this.tags = tags; } public Contact() { } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((tags == null) ? 0 : tags.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Contact other = (Contact) obj; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; if (tags == null) { if (other.tags != null) return false; } else if (!tags.equals(other.tags)) return false; return true; } }