-->
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: DB2 OS390 - ddl generation : SQLCODE = -107, ERROR: THE NAM
PostPosted: Tue Aug 03, 2004 9:12 am 
Newbie

Joined: Tue Jun 15, 2004 8:39 am
Posts: 4
When we generate the ddl with schema export, the following line produces an error :

alter table COMOR_TRC_PREST add constraint FK191B9D6FCB4A21EA foreign key (IDTRONCON) references COMOR_TRONCON;

error is:

SQLCODE = -107, ERROR: THE NAME FK45C68390ECF5138F IS TOO LONG

Somebody knows where we can modify the processing of generation of the constraint

thanks.

_________________
Gilles


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 9:12 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Use the foreign-key attribute in your <column> mappings.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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.