数据库中的时间是date类型的,如:2009-3-3 15:23:52,这个数据是其他程序插入到数据库当中的从hibernate中得到的是2009-3-3
如何得到同数据库中一样的数据??
hibernate中要设置成timestamp型
要设置成datetime型吧?