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
相关推荐
solarspot 2020-07-28
九天银河技术 2020-11-11
行万里 2020-10-26
此处省略三千字 2020-10-22
nongfusanquan0 2020-09-23
夜影风个人空间 2020-09-22
adsadadaddadasda 2020-09-08
85251846 2020-09-14
jbossrobbie 2020-08-16
幸福ITman汪文威 2020-08-15
MySQL源氏boy 2020-08-15
MySQLqueen 2020-08-15
Greatemperor 2020-07-19
冷月醉雪 2020-07-05
manongxiaomei 2020-07-05
javamagicsun 2020-07-04
june0 2020-07-04
yogoma 2020-06-25