How to specify a JPA named parameter surrounded by wildcards?

前端 未结 3 535
眼角桃花
眼角桃花 2020-12-09 07:44

How would I specify a JPA query like:

Query q = 
  em.createQuery(
    \"SELECT x FROM org.SomeTable x WHERE x.someString LIKE \'%:someSymbol%\'\"
  );
         


        
3条回答
提交回复
热议问题