@Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   AuthLevelAttributeEntity other = (AuthLevelAttributeEntity) obj;
   if (grouping == null) {
     if (other.grouping != null) return false;
   } else if (!grouping.equals(other.grouping)) return false;
   if (id == null) {
     if (other.id != null) return false;
   } else if (!id.equals(other.id)) return false;
   if (name == null) {
     if (other.name != null) return false;
   } else if (!name.equals(other.name)) return false;
   if (type == null) {
     if (other.type != null) return false;
   } else if (!type.equals(other.type)) return false;
   if (valueAsByteArray == null) {
     if (other.valueAsByteArray != null) return false;
   } else if (!valueAsByteArray.equals(other.valueAsByteArray)) return false;
   if (valueAsString == null) {
     if (other.valueAsString != null) return false;
   } else if (!valueAsString.equals(other.valueAsString)) return false;
   return true;
 }
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((grouping == null) ? 0 : grouping.hashCode());
   result = prime * result + ((id == null) ? 0 : id.hashCode());
   result = prime * result + ((name == null) ? 0 : name.hashCode());
   result = prime * result + ((type == null) ? 0 : type.hashCode());
   result = prime * result + ((valueAsByteArray == null) ? 0 : valueAsByteArray.hashCode());
   result = prime * result + ((valueAsString == null) ? 0 : valueAsString.hashCode());
   return result;
 }