问题
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