@Test public void Timestampからconvertテスト() throws Exception { SimpleDateFormat sdf = new SimpleDateFormat(); sdf.applyPattern("yyyy/MM/dd HH:mm:ss.SSS"); String ymdhmss = "2011/11/11 13:45:56.789"; Date d = sdf.parse(ymdhmss); Timestamp ts = new Timestamp(d.getTime()); assertEquals(sdf.parse(ymdhmss), new DateConverter().convert(ts)); }
public Date convert(java.sql.Date d) { return new Date(d.getTime()); }
DateConverter implements TypeConverter<Date> { public Date convert(java.sql.Date d) { return new Date(d.getTime()); } }
DateConverter implements TypeConverter<Date> { public Date convert(java.sql.Date d) { return new Date(d.getTime()); } DateConverter(); }
DateConverter implements TypeConverter<Date> { public Date convert(java.sql.Date d) { return new Date(d.getTime()); } DateConverter(); Date convert(java.sql.Date d); Date convert(Timestamp t); Date convert(String v); }
DateConverter implements TypeConverter<Date> { public Date convert(java.sql.Date d) { return new Date(d.getTime()); } DateConverter(); Date convert(java.sql.Date d); Date convert(Timestamp t); Date convert(String v);  }