You can create a custom converter.

A simpler quick solution is to create two methods to encapsulate the sql
date in a normal date:
The pojo object accepts a java.sql.Timestamp

Your original methods:
[CODE]
  @Column(name = "timein"  )
  public java.sql.Timestamp getTimein() {
     return timein;
  }

  public void setTimein(java.sql.Timestamp timein) {
     this.timein = timein;
  }

//----Add these too:
public java.util.Date getTimeinDate(){
    return new java.utilDate(getTimein().getTime());
}
public void setTimeinDate(java.util.Date timeinDate){
    setTimein(new java.sql.Timestamp(timeinDate.getTime());
}
[/CODE]

Now you can simply bind to "timeinDate" and you will get your Timestamp as a
Date.
Hope it helps
--
Marc Nuri

Reply via email to