JPA是否已经支持处理JSON字段上的查询,如下所示:
select * from person where (info ->> 'age')::numeric = 40;
select * from person where info ->> 'firstName'= 'Cabalo';
Run Code Online (Sandbox Code Playgroud)
我正在使用hibernate 5(在spring-data-jpa之后)和Postgres 9.4
在gist上提供的代码中:https://gist.github.com/1341600 我试图使用ul/li元素将一些搜索表单元素(而不是表格)组合在一起.在浏览器中检查输出时(带有firebug的Chrome 15/FF 7),ul元素似乎高度为0,li元素显示在它之外.当我评论出来的时候
float: left;来自ul.search-inputs liCSS声明的语句然后正确显示ul元素的高度.
为了正确看到ul元素的高度,有人能指出我的解决方案吗?
我试图从具有以下结构的表中进行选择:
MATERIALS
id
shortname
longname
Run Code Online (Sandbox Code Playgroud)
所有长名称都像短名称的行.
我已经尝试过这里提出的解决方案:SQL中的Dynamic Like Statement ,但它对我不起作用.
SELECT * from MATERIALS where longname like (shortname + '%');
Run Code Online (Sandbox Code Playgroud)
在Oracle中不起作用.