1. Hibernate duplicate key value violates exeptions stackoverflow.comI got exception: duplicate key value violates unique constraint "client_pkey" Key (xmppid)=(xyz813@deweet/prototype1006) already exists. My configuration is Tomcat 6.0, hibernate 3.3.1, c3pO 0.9.2 or dbcp I don't know how to avoid this I thought ... |
2. "Duplicate entry for key 2" SQL forum.hibernate.orgHi, Getting this error running Hibernate database code. 2004-01-28 12:21:57,973 [main] ERROR net.sf.hibernate.util.JDBCExceptionReporter - Invalid argument value, message from server: "Duplicate entry '22222' for key 2" 2004-01-28 12:21:58,014 [main] ERROR net.sf.hibernate.util.JDBCExceptionReporter - Could not insert java.sql.SQLException: Invalid argument value, message from server: "Duplicate entry '22222' for key 2" at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1825) Help appreciated.Thanks! |
3. Index creation on PK (Hibernate3, Gupta SQL Base) forum.hibernate.orgNewbie Joined: Thu Jan 13, 2005 1:24 pm Posts: 4 All, I am in the process of creating a dialect to communicate with Gupta SQLbase database. Currently I am facing a problem of "Table in incomplete state". According to Gupta this problem is caused by a missing index on the primary key. This appears to be correct since there are no ... |
4. SQL is missing parenthesis ==> foreign key condition igno forum.hibernate.orgStatement.hbm.xml: Code: |
5. Generated Keys and MS-SQL forum.hibernate.orgI recently moved an application from MS-SQL 2000 JDBC driver to 2005. We were using selectmethod = cursor before, but as per the FAQ, removed this after the driver upgrade. After making the necessary configuration changes, I noticed that all inserts in the application were failing. I put Hibernate in debug logging mode and examined the raw SQL statements. I noticed ... |
6. [Foreign Key] "Extra" SQL Update statement forum.hibernate.orgHi all, I'm doing some performance tests on a Java program using Hibernate and when I had a closer look on what kind of queries are generated by hibernate I was a bit surprised. I explained myself. Basically, my program manages tables linked with a simple foreign key and when I'm inserting records in those tables. hibernate is using one insert ... |