Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
  HXTT Excel v5.0
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  Buy Now
  HXTT XML v2.0
Offshore Outsourcing
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 Xing 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 Xing Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap