随笔分类 -  Hibernate

摘要:用hibernate插入java.util.Date数据时发现 时分秒 会丢失。如 2014-05-30 15:59:16.921 在postgresql数据库中显示2014-05-30 00:00:00.0。 后来查了一下是因为Model类的 annotation 中的写成 @Tempora... 阅读全文
posted @ 2014-05-30 16:21 Lblogs 阅读(696) 评论(1) 推荐(0)