Oracle 日期时间 select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from goods tinsert into goods (id,createdate) values ('232',to_date('2014-05-14 10:05:33','yyyy-mm-dd hh24:mi:ss'))实体类get方法注解 @Temporal(TemporalType.DATE) 如果要向数据库插入时分秒 需要TIMESTAMP