Home > Database > Mysql Tutorial > mysql-hibernate映射Date类型时,时间戳格式(yyyy-MM-dd HH:mm:ss)怎么写?

mysql-hibernate映射Date类型时,时间戳格式(yyyy-MM-dd HH:mm:ss)怎么写?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:33:14
Original
1875 people have browsed it

mysql框架javahibernatemap

现在的问题是:教程里说,hibernate框架对Date的默认类型就是时间戳(datetime),所以在映射文件里不用做额外配置,年月日格式和时分秒格式才需要做,那现在为什么时间戳格式出不来?

图片说明

图片说明

图片说明

模仿一下年月日和时分秒的配置写法,测试时也是错误的,提示找不到这类型----》

图片说明

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template