首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

hibernate reverse engineering, customized type 地图ping, MappingException

2012-11-19 
hibernate reverse engineering, customized type mapping, MappingException在myeclipse reverse enginee

hibernate reverse engineering, customized type mapping, MappingException
在myeclipse reverse engineering生成 hbm.xml的时候, mysql的timestamp类型会被映射到java.sql.Timestamp, 需要自定义呢, 要改 customized type mapping, 添加自定义的mapping, 如果输入timestamp --> java.util.Date 会产生以下错误:

org.hibernate.MappingException: jdbc-type: timestamp is not a known JDBC Type nor a valid number
?结论是JDBC Type要大写, 比如 JDBC Type: TIMESTAMP, Hibernate Type: java.util.Date

热点排行