added missing hashCode to generated classes. We override equals and thus should also explicitly override hashCode.