Role 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); Role id(Integer id); @Override @Transient @XmlTransient boolean isIdSet(); @NotEmpty @Size(max = 100) @Column(name = "ROLE_NAME", nullable = false, unique = true, length = 100) @Field(analyzer = @Analyzer(definition = "custom")) String getRoleName(); void setRoleName(String roleName); Role roleName(String roleName); Role withDefaults(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void newInstanceHasNoPrimaryKey() { Role model = new Role(); assertThat(model.isIdSet()).isFalse(); }