AuditLog 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); AuditLog id(Integer id); @Override @Transient @XmlTransient boolean isIdSet(); @Size(max = 256) @Column(name = "AUTHOR", length = 256) String getAuthor(); void setAuthor(String author); AuditLog author(String author); @Size(max = 256) @Column(name = "EVENT", length = 256) String getEvent(); void setEvent(String event); AuditLog event(String event); @Column(name = "EVENT_DATE", length = 23) @Temporal(TIMESTAMP) Date getEventDate(); void setEventDate(Date eventDate); AuditLog eventDate(Date eventDate); @Size(max = 256) @Column(name = "STRING_ATTRIBUTE_1", length = 256) String getStringAttribute1(); void setStringAttribute1(String stringAttribute1); AuditLog stringAttribute1(String stringAttribute1); @Size(max = 256) @Column(name = "STRING_ATTRIBUTE_2", length = 256) String getStringAttribute2(); void setStringAttribute2(String stringAttribute2); AuditLog stringAttribute2(String stringAttribute2); @Size(max = 256) @Column(name = "STRING_ATTRIBUTE_3", length = 256) String getStringAttribute3(); void setStringAttribute3(String stringAttribute3); AuditLog stringAttribute3(String stringAttribute3); AuditLog withDefaults(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void newInstanceHasNoPrimaryKey() { AuditLog model = new AuditLog(); assertThat(model.isIdSet()).isFalse(); }