Use Arrays.equals() inside generated equals() methods.