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
  Support
  Download
  Document
  FAQ
  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)

HXTT Text(CSV)
HXTT Text trial : SEQUENCE-generated ID always the same
Gregory Dubois
2008-03-07 05:49:53
I can only add 1 record to my CSV file...

Hibernate can add only 1 record. At the second, it throws :
Hibernate: select nextval('S_PE')
Hibernate: insert into PERIOD (P_BEGIN, P_END, ID) values (?, ?, ?)
Hibernate: select nextval('S_PE')
Hibernate: insert into PERIOD (P_BEGIN, P_END, ID) values (?, ?, ?)
0 [main ] ERROR org.hibernate.util.JDBCExceptionReporter - java.sql.SQLException: Failed to insert a new record into table PERIOD! For more information, please use SQLException.getNextException().

I do a loop that adds Period objects (mapped to table PERIOD) and saves them. After a debug, I found out that HXTT 's classes generates 2 times the same id out of a sequence which is found (I know sequence file is found because I had an Exception untill I provided the file with the value hereunder)
CREATE S "S_PE" MINPE" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 401 CACHE 200 NOORDER NOCYCLE ;

The field (in Hibernate's HBM)



S_PE



It should begin with ID="401" but does not...
HXTT always generates an ID "5784066817803503950"...

Big Bug?

Thanx
Re:HXTT Text trial : SEQUENCE-generated ID always the same
Gregory Dubois
2008-03-07 06:08:21
I downloaded the latest version of today.
It always generates the same ID, but does not complain about the non-uniqueness of the key.
I did not use the create table, but only put a CSV file with the header.
Result :
ID,P_BEGIN,P_END
5784066817803503950,2008-03-07 15:00:42.015,2008-03-07 15:00:42.015
5784066817803503950,2008-03-07 03:00:55,2008-03-07 03:00:55
5784066817803503950,2008-03-07 03:01:20,2008-03-07 03:01:20
5784066817803503950,2008-03-07 03:01:37,2008-03-07 03:01:37
5784066817803503950,2008-03-07 03:01:37,2008-03-07 03:01:37
...etc...
...etc...
5784066817803503950,2008-03-07 03:02:35,2008-03-07 03:02:35
5784066817803503950,2008-03-07 03:02:35,2008-03-07 03:02:35

(NOTE : for readingness, I cut a part of the data)
It stops after 50 records (trial version).

I wait for your answer before buying it. ;o)

Cheers

Search Key   Search by Last 50 Questions




Google
 

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