Initial SessionFactory creation failed.org.hibernate.MappingException: No Dialect mapping for JDBC type: 1111
27 Dec, 2012 6:38:34 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet commission threw exception
org.hibernate.MappingException: No Dialect mapping for JDBC type: 1111
at org.hibernate.dialect.TypeNames.get(TypeNames.java:79)
at org.hibernate.dialect.TypeNames.get(TypeNames.java:104)
at org.hibernate.dialect.Dialect.getTypeName(Dialect.java:347)
at org.hibernate.mapping.Column.getSqlType(Column.java:208)
at org.hibernate.mapping.Table.sqlCreateString(Table.java:419)
at org.hibernate.cfg.Configuration.generateSchemaCreationScript(Configuration.java:930)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:105)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:383)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)
at com.core.commission.HibernateUtil.<clinit>(HibernateUtil.java:15)
at com.core.commission.service.BaseCommissionService.saveRules(BaseCommissionService.java:48)
at com.core.commission.service.BaseCommissionService.processSave(BaseCommissionService.java:22)
at com.core.web.CommissionServlet.processRequest(CommissionServlet.java:51)
at com.core.web.CommissionServlet.doPost(CommissionServlet.java:34)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
启动 Web 服务器时出现上述错误。我已经使用 enity 类的枚举映射。就像是...
@Column(name = "commission_type")
@Type(type = "com.core.commission.model.FNEnumUserType", parameters = @Parameter(name = "type", value = "com.core.commission.dto.CommissionType"))
private CommissionType commissionType;
有什么问题,我错过了配置中的任何内容吗?谢谢 !!