Hallo,
I try to work with the HXTT-Text-Driver and hibernate. I get the following Exception:
Initial SessionFactory creation failed.org.hibernate.MappingException: No Dialect mapping for JDBC type: 12
Exception in thread "main" java.lang.ExceptionInInitializerError
at util.HibernateUtil.(HibernateUtil.java:27)
at events.EventManager.main(EventManager.java:90)
Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC type: 12
at org.hibernate.dialect.TypeNames.get(TypeNames.java:56)
at org.hibernate.dialect.TypeNames.get(TypeNames.java:81)
at org.hibernate.dialect.Dialect.getTypeName(Dialect.java:291)
at org.hibernate.mapping.Column.getSqlType(Column.java:182)
at org.hibernate.mapping.Table.sqlCreateString(Table.java:394)
at org.hibernate.cfg.Configuration.generateSchemaCreationScript(Configuration.java:848)
at org.hibernate.tool.hbm2ddl.SchemaExport.(SchemaExport.java:74)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:311)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at util.HibernateUtil.(HibernateUtil.java:20)
... 1 more
Can you help me?
Thank you
S.Sayhi
|
|
Are you using HXTT's hibernate support package at http://www.hxtt.com/hibernate.html?
|
|
Yes I'm using the HXTT's hibernate support package at http://www.hxtt.com/hibernate.html?
|
>No Dialect mapping for JDBC type: 12
It's strange. At HxttTextDialect.java of hibernate.zip, you should find
registerColumnType(Types.VARCHAR, 254, "varchar($l)");
Try to add
registerColumnType( Types.VARCHAR, "varchar($l)" );
and compile it to replace the older HxttTextDialect.class file to see whether you can work normally.
|