add hashcode implementation to mappedclass