问题 I need to replace the below sql query having left join on 2 tables with 2 same column types by using criteriabuilder api and I am getting following error when I run the program org.hibernate.query.criteria.internal.BasicPathUsageException: Cannot join to attribute of basic type. I checked couple of blogs, examples but couldn't get much help. query that needs to be replaced: SELECT connection_name, connection_date, connection_role, a.code, a.box FROM test.connections a LEFT JOIN test.samples b