package io.vertx.ext.web.client.jackson;

import java.util.Objects;

/**
 * @author <a href="mailto:julien@julienviet.com">Julien Viet</a>
 */
public class WineAndCheese {

  private String wine;
  private String cheese;

  public String getWine() {
    return wine;
  }

  public WineAndCheese setWine(String wine) {
    this.wine = wine;
    return this;
  }

  public String getCheese() {
    return cheese;
  }

  public WineAndCheese setCheese(String cheese) {
    this.cheese = cheese;
    return this;
  }

  @Override
  public boolean equals(Object obj) {
    if (obj instanceof WineAndCheese) {
      WineAndCheese that = (WineAndCheese) obj;
      return Objects.equals(wine, that.wine) && Objects.equals(cheese, that.cheese);
    }
    return false;
  }
}

@@ -758,10 +758,90 @@
 se;%0A  %7D%0A
+  %0A  @Override%0A%09public int hashCode() %7B%0A%09%09return Objects.hash(wine, cheese);%0A%09%7D%0A
 %7D%0A

add hashCode() after equals()