1 package org.emau.icmvc.ganimed.ttp.cm2.dto;
38 import java.io.Serializable;
39 import java.util.HashMap;
53 private static final long serialVersionUID = -7187508614583233675L;
55 private HashMap<K, V> map;
58 map =
new HashMap<K, V>();
66 this.map =
new HashMap<K, V>();
70 public HashMap<K, V> getMap() {
74 public void setMap(HashMap<K, V> map) {
81 public int hashCode() {
84 result = prime * result + ((map == null) ? 0 : map.hashCode());
89 public boolean equals(Object obj) {
94 if (getClass() != obj.getClass())
96 @SuppressWarnings(
"unchecked")
99 if (other.map != null)
101 }
else if (!map.equals(other.map))
wrapper class, because jaxb can't handle hashmaps - https://wiki.kuali.org/display/STUDENTDOC/5.2+Using+JAXB+Objects+in+Web+Services : Unfortunately, as of 2.1, this processing is only defined for bean properties and not when you marshal HashMap as a top-level object (such as a value in JAXBElement.) In such case, HashMap will be treated as a Java bean, and when you look at HashMap _as a bean it defines no getter/setter property pair...