【发布时间】:2021-06-05 03:37:51
【问题描述】:
我需要定义一个 JPA 查询,翻译为:
SELECT
*
from
items_table
where
lower(CONCAT(item_id,' ', color,' ',details,' ')) like all ('{"%blue%", "%plastic%"}') and
store='Main' and
status='In Stock' and
item_type='Container';
所有的参数列表将与来自前端的 store、status 和 item_type 一起作为输入。
【问题讨论】:
-
这个问题和json[]数据类型列有什么关系?
-
@crizzis 非常抱歉。
标签: spring postgresql spring-data-jpa spring-data