We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 021b274 commit a90aaa4Copy full SHA for a90aaa4
hibernate-core/src/main/java/org/hibernate/cfg/ToOneFkSecondPass.java
@@ -79,7 +79,7 @@ else if ( property != null) {
79
Iterator it = ( (Component) valueIdentifier ).getPropertyIterator();
80
while ( it.hasNext() ) {
81
Property idProperty = (Property) it.next();
82
- if ( localPath.startsWith( idProperty.getName() ) ) {
+ if ( localPath.equals( idProperty.getName() ) || localPath.startsWith( idProperty.getName() + "." ) ) {
83
return true;
84
}
85
0 commit comments