-->
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: hbm foreign key name
PostPosted: Wed Nov 10, 2010 3:31 pm 
Newbie

Joined: Wed Nov 10, 2010 1:23 pm
Posts: 1
Is there a negative consequence to a mismatch between a foreign key name as defined in the hbm mapping file versus the foreign key name specified on the db table?

in my hbm, I have:

<key column="COMPANY_ID" foreign-key="FK_COMPANY_ASDF"/>


on my table, I have:

KEY `FK_COMPANY` ( `COMPANY_ID` )


This mismatch is not due to a problem in hibernate, but rather an error on my part.

My question is if there is a negative impact on save,update,delete,load,queries with this mismatch in foreign key name. Or is the foreign key name specification in the hbm only used for creating the foreign key?


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.