Hello I was trying to create a reproducer for https://hibernate.atlassian.net/browse/HHH-15661 and it seems to be connected to the way that sometimes hibernates allows you to use “.id” instead of the real Entity. I remember that using a syntax like “where x.id in” instead of “where x in” at some point in hibernate long ago helped you to work around some hibernate bugs, now it seems to trigger some hard to debug ones. Expected: query 0,1,2 should work or break the same. Preferably work because at some point they did.. Actual query 0 and 1 pass the interpreter but fail at execution. Adding an extra “()” will break the query at the intepreter, with a least an understandable message. |