HHH-14467 Avoid false positives when detecting *ToOne associations that are part of the identifier
Co-authored-by: Yoann Rodière <yoann@hibernate.org>
This commit is contained in:
parent
021b2741ab
commit
a90aaa48b4
|
@ -79,7 +79,7 @@ public class ToOneFkSecondPass extends FkSecondPass {
|
|||
Iterator it = ( (Component) valueIdentifier ).getPropertyIterator();
|
||||
while ( it.hasNext() ) {
|
||||
Property idProperty = (Property) it.next();
|
||||
if ( localPath.startsWith( idProperty.getName() ) ) {
|
||||
if ( localPath.equals( idProperty.getName() ) || localPath.startsWith( idProperty.getName() + "." ) ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue