-->
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.  [ 1 post ] 
Author Message
 Post subject: SchemaUpdate creates duplicate keys
PostPosted: Thu Jul 15, 2004 8:32 am 
Newbie

Joined: Fri Feb 27, 2004 7:55 am
Posts: 17
Hi all!

I use hibernate 2.1.4 on Linux with a MySQL 4.0.18 server. When I try to use the schema update tool then I get the following messages:

[schemaupdate] INFO: processing foreign key constraints
[schemaupdate] alter table HIB_ROLE_PROJECT_TIMESHEET add index FKC9EF7BE12A15E434 (FOREIGN_KEY), add constraint FKC9EF7BE12A15E434 foreign key (FOREIGN_KEY) references HIB_ENTITY_TIMESHEET (id)
[schemaupdate] 15.07.2004 15:11:13 net.sf.hibernate.tool.hbm2ddl.SchemaUpdate execute
[schemaupdate] SCHWERWIEGEND: Unsuccessful: alter table HIB_ROLE_PROJECT_TIMESHEET add index FKC9EF7BE12A15E434 (FOREIGN_KEY), add constraint FKC9EF7BE12A15E434 foreign key (FOREIGN_KEY) references HIB_ENTITY_TIMESHEET (id)
[schemaupdate] 15.07.2004 15:11:13 net.sf.hibernate.tool.hbm2ddl.SchemaUpdate execute
[schemaupdate] SCHWERWIEGEND: Invalid argument value, message from server: "Duplicate key name 'FKC9EF7BE12A15E434'"
[schemaupdate] alter table HIB_ROLE_PROJECT_TIMESHEET add index FKC9EF7BE1A738CA93 (OWNER_KEY), add constraint FKC9EF7BE1A738CA93 foreign key (OWNER_KEY) references HIB_ENTITY_PROJECT (id)
[schemaupdate] 15.07.2004 15:11:13 net.sf.hibernate.tool.hbm2ddl.SchemaUpdate execute
[schemaupdate] SCHWERWIEGEND: Unsuccessful: alter table HIB_ROLE_PROJECT_TIMESHEET add index FKC9EF7BE1A738CA93 (OWNER_KEY), add constraint FKC9EF7BE1A738CA93 foreign key (OWNER_KEY) references HIB_ENTITY_PROJECT (id)
...

Does anyone know how to fix or work around this?
Regards,
--Stefan


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

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.