Changing equals/hashCode methods in Publication