如何使用JPA Hibernate在同一张桌子上进行子查询?
帮助我将下面提到的查询转换为Hibernate JPA。 查询查询= EntityManager.Createquery(“从表1中选择a,b,c,d,其中d in(从table1中选择d,其中a = 1和b = 2”);
Help me to convert the below mentioned query to Hibernate JPA.
Query query= entityManager.createQuery("Select a,b,c,d from table1 where d IN (Select d from table1 where a=1 and b=2");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是给别名应该起作用
Just giving an alias should work