[hibernate-dev] Foreign key to not primary key column.

Dmitry Geraskov dgeraskov at exadel.com
Wed Mar 2 04:44:28 EST 2011


Hey, guys,
it is possible that foreign key references non-primary key, but some 
candidate key. For example unique column.
But seems it was not taken into account in ForeignKey class.
And that is why we have a NPE in the case.
Could somebody review the patch which fixes the problem?

(see https://issues.jboss.org/browse/JBIDE-5461 for more details)
Thanks,
Dmitry Geraskov
Hibernate tools plugins developer.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fk_patch.txt
Url: http://lists.jboss.org/pipermail/hibernate-dev/attachments/20110302/83a668d7/attachment.txt 


More information about the hibernate-dev mailing list