Convert Oracle Case Statement to JPQL or JPA repository query?

半城伤御伤魂 提交于 2019-12-08 07:14:49

问题


I am new to the JPA2.0 world, but I hope case statements can also be mapped to JPQL or using JPARepository. I am using Oracle 12c.

How to convert below statement to JPQL to repository query?

select case when exists (select 1 from ABC_OWNER.BANK_ACCT where ACC_NUM = ?) then 'Y' else 'N' end from dual;

来源:https://stackoverflow.com/questions/51565156/convert-oracle-case-statement-to-jpql-or-jpa-repository-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!