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

2011-03-07 Thread Max Rydahl Andersen
Dmitry, Could you make the patch a pull-request on hibernate 3.x and 4.x git version ? Then I think it can/will be accepted/processed faster. Thanks, Max On Mar 2, 2011, at 10:44, Dmitry Geraskov wrote: > Hey, guys, > it is possible that foreign key references non-primary key, but some > cand

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

2011-03-02 Thread Dmitry Geraskov
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:/