"Cannot compare left expression of type '...' with right expression of type '...' I understand the source of the problem (Hibernate 6.x expects the same data type on join statements) and I know how to fix" can you please elaborate on the solution to this error, I am currently running into the same issue.