Take the 2-minute tour ×  I wrote a simple class:  @Table(name =
"battle_log") @SQLInsert(sql = "INSERT INTO battle_log (id,
version, date_created, some_date) VALUES (?,?,?,?)", check =
ResultCheckStyle.NONE) @NamedQueries(value = {
@NamedQuery(name = "BattleLog.findAll",                 query =
"SELECT a FROM BattleLog a"),         @NamedQuery(name =
"BattleLog.findAllBySomeDate",                 query = "SELECT a
FROM BattleLog a WHERE a.someDate = :someDate") public class
BattleLog implements Serializable {     private Long id;
private Integer version;      private Date someDate;     private
Date created;      public BattleLog() {         created = new
Date();      public Long getId() {         return id;
public void setId(Long id) {         this.id = id;
@Column(name = "version")     public Integer getVersion() {
return version;      public void setVersion(Integer version) {
this.version = version;      @Column(name = "date_created",
nullable = false, columnDefinition