Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  Buy Now
  HXTT Word v1.1
  HXTT XML v4.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 Lab of Xi'an City (abbr, HXTT)

Too strict date formatting
Martin Ross
2006-02-11 00:00:00
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
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
The latest Hibernate support package is at here.

Search Key   Search by Last 50 Questions


Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap