Use getters and setters to evaluate equals() or hashCode(), otherwise hibernate proxy does not work