Looks like it's related to https://hibernate.atlassian.net/browse/HHH-8968. If the JoinColumn is not defined, we are doing a null = null check and not an IS NULL.