[英]IllegalArgumentException: property PublicID is not on root type entity.UserRegion
I'm querying a join entity, userregion, to find regions with a particular zipcode and users that are active.我正在查询连接实体 userregion 以查找具有特定邮政编码和活动用户的区域。 Then I compare the results between the two of them.
然后我比较了他们两个之间的结果。
userregion
------------------------
PublicID | UserID | RegionID
regionzone
------------------------
Code | ZoneType | Region(FK)
user
------------------------
Credential | Region (FK)
var regQuery = Query.make(UserRegion).join("Region").join("ID", RegionZone, "Region").compare("Code", Equals, polZip)
var userQuery = Query.make(UserRegion).join("User").join("Credential").compare("Active", Equals, true)
regQuery.subselect("PublicID", CompareIn, userQuery, "Credential.PublicID")
The subselect is returning the following error: IllegalArgumentException: property PublicID is not on root type entity.UserRegion子选择返回以下错误:IllegalArgumentException:属性 PublicID 不在根类型 entity.UserRegion 上
I'm not quite sure what the issue is here, so any assistance would be appreciated.我不太确定这里的问题是什么,所以任何帮助将不胜感激。
在子选择查询中,能否去掉“Credential.PublicID”中的双引号,然后再次尝试执行查询。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.