-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: probleme d'insertion
PostPosted: Fri Apr 07, 2006 5:42 am 
Newbie

Joined: Mon Mar 27, 2006 10:23 am
Posts: 11
bonjours
j'ai configuré ma base et j'ai determiné les fichiers de mapping
et est bien compilé mais a l'execution il m'affiche

Could not execute JDBC batch update

L'élément du batch 0 insert into Article (libl, libc, code) values (QSD, qsd, qsd) a été annulé. Appeler getNextException pour en connaître la cause.
11:31:16,343 WARN JDBCExceptionReporter:71 - SQL Error: 0, SQLState: 23505
11:31:16,343 ERROR JDBCExceptionReporter:72 - ERROR: duplicate key violates unique constraint "article_pkey"
11:31:16,359 ERROR AbstractFlushingEventListener:300 - Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 7:17 am 
Expert
Expert

Joined: Thu Sep 04, 2003 8:23 am
Posts: 368
Tu insères deux articles avec la même clé primaire dans la base : revoit ta gestion d'id dans tes fichiers de mapping

_________________
Seb
(Please don't forget to give credits if you found this answer useful :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.