Entity.hashcode compatible to java versions prior to 8.

#88 was using code introduced in Java8.