I ran into this strange problem. I encode my machine in Win XP, and then move all the code to Mac OS X. Run using banners from an XP computer. I code in java and use hibernate to process the database.
Somehow I canβt insert one row, and the keys are generated using the class of the increment generator. I also tried a native but same error on a Mac.
here is the debug mode. Now I know the error as a key violation, but the same does not happen in WinXP. I truncated my database before running the code. I think this is some Mac class generator dependency. Or some other banks?
And here are some features:
- Mac OS X 10.5 (x86_64)
- MYSQL 5.1.35 Community Server
- JDBC driver mysql-connector-java-5.1.7-bin.jar
- Java (TM) 2 runtime, standard version (build 1.5.0_16-b06-284)
- HotSpot (TM) Java client virtual machine (build 1.5.0_16-133, mixed mode, sharing)
please inform
2009-06-20 18:43:01,230 DEBUG [org.hibernate.type.IntegerType] - binding '11266' to parameter: 2 2009-06-20 18:43:01,230 DEBUG [org.hibernate.type.IntegerType] - binding '332' to parameter: 3 2009-06-20 18:43:01,281 DEBUG [org.hibernate.type.IntegerType] - binding '6' to parameter: 4 2009-06-20 18:43:01,281 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister] - Inserting entity: [org.joshua.hibernate.dto.Pagedatecounts
source share