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
  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
Heng Xin Tian Tai Ltd. of Beijing City (abbr, HXTT)

Too strict date formatting
Martin Ross
2006-02-11 00:00:00.0
For date item like the following from a CSV file

8,2006-2-1,MFEE16244350013 MSP,,287.77

this causes

Caused by: java.sql.SQLException: Correct date format: 'yyyy-mm-dd', 'hh:mm:ss' and `yyyy-mm-dd hh:mm:ss.f...', but you have used '[B@1a6b16f'!
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at com.hxtt.sql.b8.getTimestamp(Unknown Source)
at com.hxtt.sql.b8.getTimestamp(Unknown Source)
at org.hibernate.type.TimestampType.get(
at org.hibernate.type.NullableType.nullSafeGet(
at org.hibernate.type.NullableType.nullSafeGet(
at org.hibernate.type.AbstractType.hydrate(
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(
at org.hibernate.loader.Loader.loadFromResultSet(
at org.hibernate.loader.Loader.instanceNotYetLoaded(
at org.hibernate.loader.Loader.getRow(
at org.hibernate.loader.Loader.getRowFromResultSet(
at org.hibernate.loader.Loader.doQuery(
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(
at org.hibernate.loader.Loader.doList(
... 10 more
Re:Too strict date formatting
HXTT Support
2006-02-11 00:00:00.0
All of HXTT JDBC drivers have supported that now. Thanks for your requirement.
Re:Re:Too strict date formatting
HXTT Support
2006-05-10 21:51:20.0
The latest Hibernate support package is at here.

Search Key   Search by Last 50 Questions


Copyright © 1999-2017 Heng Xin Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap