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.