Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT Text(CSV)
Exception hibernate Text-driver
S. Sayhi
2007-11-19 02:04:25.0
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
Re:Exception hibernate Text-driver
HXTT Support
2007-11-19 05:13:47.0
Are you using HXTT's hibernate support package at http://www.hxtt.com/hibernate.html?
Re:Re:Exception hibernate Text-driver
S. Sayhi
2007-11-19 22:36:49.0
Yes I'm using the HXTT's hibernate support package at http://www.hxtt.com/hibernate.html?
Re:Re:Re:Exception hibernate Text-driver
HXTT Support
2007-11-20 05:32:32.0
>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.
Re:Re:Re:Re:Exception hibernate Text-driver
S. Sayhi
2007-11-21 03:44:22.0
Thank you

It works now.

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap