Hibernate Collection链接(Hibernate Collection chaining)
我有两个实体
University courses Course students
我想访问大学里的所有学生。 我尝试了以下查询
select u.courses.students from university u
我有以下例外。
org.hibernate.QueryException: illegal attempt to dereference collection [university0_.id.courses] with element property reference [students] [ select u.courses.students from com.socialsite.persistence.University u ] at org.hibernate.hql.ast.tree.DotNode$1.buildIllegalCollectionDereferenceException(DotNode.java:46) .....
任何人都能解释这有什么问题吗?
I have two Entities
University courses Course students
i want to access all the students in a university. I tried the following query
select u.courses.students from university u
i got the following exception.
org.hibernate.QueryException: illegal attempt to dereference collection [university0_.id.courses] with element property reference [students] [ select u.courses.students from com.socialsite.persistence.University u ] at org.hibernate.hql.ast.tree.DotNode$1.buildIllegalCollectionDereferenceException(DotNode.java:46) .....
can anyone explain what is wrong with this?
原文:https://stackoverflow.com/questions/2550885
最满意答案
您无法使用实时SDK版本执行此操作,此功能已添加到当前正在开发中的CARTO Mobile SDK 4.1.0中。
查看更多: https : //github.com/CartoDB/mobile-sdk/issues/88
更新:SDK 4.1.0 alpha版本现在可以从nuget (适用于iOS或Android )获取,只需在nuget包装载器中启用“预发布”版本,然后选择4.1.0-alpha-8或更新版本的CartoMobileSDK 。
You cannot do this with live SDK version, this feature is added to CARTO Mobile SDK 4.1.0, currently in development.
See more: https://github.com/CartoDB/mobile-sdk/issues/88
Update: SDK 4.1.0 alpha version can now be taken from nuget (for iOS or Android), just enable "Pre-release" versions in nuget package loader and pick 4.1.0-alpha-8 or newer for CartoMobileSDK.
相关问答
更多-
CARTO Xamarin Mobile SDK可以免费使用吗?(CARTO Xamarin Mobile SDK is allowed to use with FREE license? [closed])[2022-05-24]
CARTO Mobile SDK定价位于https://carto.com/pricing/engine/页面的“移动应用”切换下。 免费选项涵盖了所有开箱即用的平台:iOS,Android,Windows 10 UWP和Xamarin。 此外,您还可以使用本机插件包装器,使用Cordova或React Native开发基于JS的应用程序。 注意:我是CARTO的移动主管。 CARTO Mobile SDK pricing is in https://carto.com/pricing/engine/ pa ... -
将opaque设置为NO ,将alpha为0.3,如下所示: UIImageView *myImageView = ... myImageView.opaque = NO; myImageView.alpha = 0.3; Set opaque to NO and alpha to 0.3, like this: UIImageView *myImageView = ... myImageView.opaque = NO; myImageView.alpha = 0.3;
-
您无法使用实时SDK版本执行此操作,此功能已添加到当前正在开发中的CARTO Mobile SDK 4.1.0中。 查看更多: https : //github.com/CartoDB/mobile-sdk/issues/88 更新:SDK 4.1.0 alpha版本现在可以从nuget (适用于iOS或Android )获取,只需在nuget包装载器中启用“预发布”版本,然后选择4.1.0-alpha-8或更新版本的CartoMobileSDK 。 You cannot do this with live ...
-
UIWebView背景设置为清除颜色,但它不透明(UIWebView background is set to Clear Color, but it is not transparent)[2022-07-25]
还设置: [webView setBackgroundColor:[UIColor clearColor]]; [webView setOpaque:NO]; Also set : [webView setBackgroundColor:[UIColor clearColor]]; [webView setOpaque:NO]; -
您需要覆盖默认的TextBox样式。 这是默认样式您可以在App.xaml中添加样式,如下所示: