Address implements Identifiable<Integer>, Serializable { @Override @Transient @XmlTransient public boolean isIdSet() { return id != null; }  @Override @Column(name = "ID", precision = 10) @GeneratedValue @Id Integer getId(); @Override void setId(Integer id); Address id(Integer id); @Override @Transient @XmlTransient boolean isIdSet(); @Size(max = 100) @Column(name = "STREET_NAME", length = 100) String getStreetName(); void setStreetName(String streetName); Address streetName(String streetName); @NotEmpty @Size(max = 100) @Column(name = "CITY", nullable = false, length = 100) @Field(analyzer = @Analyzer(definition = "custom")) String getCity(); void setCity(String city); Address city(String city); @Column(name = "VERSION", precision = 10) @Version Integer getVersion(); void setVersion(Integer version); Address version(Integer version); Address withDefaults(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void newInstanceHasNoPrimaryKey() { Address model = new Address(); assertThat(model.isIdSet()).isFalse(); }