我正在从事Spring Boot和Spring Data JPA的工作,并编写JPQL查询。我想把下面的SubQuery转换成JPQL,但是我得到了下面的错误。: illegal attempt to dereference collection [office0_.officeCode.employees] with element property reference: illegal attempt to dereference collection [office0_.officeCode.employee
软件<-m:n->标签我写道: Software.em().createQueryquery.setParameter("tagId", tagId); A java.lang.IllegalArgumentException已被捕获,org.hibernate.QueryException:非法尝试使用元素属性引用id<
我对此进行了搜索,但无法更正我的查询。在这方面需要帮助。VU360User findByUserNameWithAllEntitiesAssociations(@Param("userName")String userName);Caused by: org.hibernate.QueryException: illegal attempt to dereference collection [vu360user0_.id.lmsRoles] with element property referen
FROM Person WHERE Company = 1",[]);"Company“是属性名,并引用"Company”实体,而"companyID“是列名( FK链接到auto-inc .org.hibernate.QueryException:无法解析属性: companyID of: Person
我不知道为什么这两个非别名版本都能工作。