SavedSearch 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); SavedSearch id(Integer id); @Override @Transient @XmlTransient boolean isIdSet(); @NotEmpty @Size(max = 128) @Column(name = "NAME", nullable = false, length = 128) String getName(); void setName(String name); SavedSearch name(String name); @NotEmpty @Size(max = 256) @Column(name = "FORM_CLASSNAME", nullable = false, length = 256) String getFormClassname(); void setFormClassname(String formClassname); SavedSearch formClassname(String formClassname); @Basic(fetch = LAZY) @Column(name = "FORM_CONTENT") @Lob byte[] getFormContent(); void setFormContent(byte[] formContent); SavedSearch formContent(byte[] formContent); @JoinColumn(name = "ACCOUNT_ID") @ManyToOne(cascade = { PERSIST, MERGE }, fetch = LAZY) Account getAccount(); void setAccount(Account account); SavedSearch account(Account account); SavedSearch withDefaults(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void newInstanceHasNoPrimaryKey() { SavedSearch model = new SavedSearch(); assertThat(model.isIdSet()).isFalse(); }