mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
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 @@ else if ( property != null) {
|
||||
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…
x
Reference in New Issue
Block a user