Skip to content

Commit

Permalink
HHH-14467 Avoid false positives when detecting *ToOne associations th…
Browse files Browse the repository at this point in the history
…at are part of the identifier

Co-authored-by: Yoann Rodière <yoann@hibernate.org>
  • Loading branch information
gbadner and yrodiere committed Mar 1, 2021
1 parent afd9342 commit c760583
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit c760583

Please sign in to comment.