changed entity hash code generation