When the following query is executed: "SELECT f FROM Foo f"
Bar objects that get returned have a null ID (i.e., bar#foo == null)
This happens because the fix for HHH-6813 Closed sets ToOne#referenceToPrimaryKey for Bar#foo to false[1], which ultimately leads to the ID not being resolved. [2]