简体   繁体   English

我们如何使用休眠原生查询(如->>或)使用postgresql noSQL运算符?

[英]how can we use postgresql noSQL operators using hibernate native query like ->> or?

I have nested JSON object like below in postgress database. 我在postgress数据库中嵌套了如下所示的JSON对象。

We want to run postgress nosql operators like ->, ->>, #>, #>> on these kind of data and trying to fetch the "id" parameter value from below json data list 我们要对此类数据运行postgress nosql运算符,例如->,->>,#>,#>> ,并尝试从json数据列表下方获取“ id”参数值

We want to run these type of queries using hibernate native query. 我们想使用休眠本机查询运行这些类型的查询。

  "FetchZotoPlatforms":[  
     {  
        "id":"PT201511180912470003",
        "platformType":"Recharge",
        "platformName":"Zoto",
        "platformAuthParams":{  
           "username":"web",
           "password":"web"
        },
        "version":"1.0"
     },
     {  
        "id":"PT201511180912470003",
        "platformType":"Recharge",
        "platformName":"Zoto",
        "platformAuthParams":{  
           "username":"web",
           "password":"web"
        },
        "version":"1.0"
     }
  ]

Found this link: https://devlearnings.wordpress.com/2014/03/28/using-postgres-json/ 找到了这个链接: https : //devlearnings.wordpress.com/2014/03/28/using-postgres-json/

Seems to be exactly what you are looking for, found it with the first google query I tried... 似乎正是您要寻找的东西,它是在我尝试的第一个Google查询中找到的...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 hibernate 中创建本机查询时如何使用查询运算符 &amp;&amp; 或 @&gt; - How to use query operators && or @> when creating a native query in hibernate 使用Like和%%运算符进行Hibernate命名查询? - Hibernate Named Query Using Like and % % operators? 如何在Hibernate Criteria API中使用PostgreSQL inet运算符(如“ &lt;&lt;”)? - How do I use PostgreSQL inet Operators like '<<' with the Hibernate Criteria API? 如何在Hibernate本机查询中使用常量? - How can I use constants in Hibernate native query? 如何在休眠本机查询中使用 MySQL 分配运算符 (:=)? - How can I use MySQL assign operator(:=) in hibernate native query? 使用Hibernate本机SQL查询更改PostgreSQL顺序 - Alter PostgreSQL sequence using Hibernate native sql query 如何使由 Hibernate 生成的 sql 用于运算符而不是相等运算符 - How can I make sql generated by Hibernate use in operators over equality operators 如何使用like和%进行Hibernate查询? - How to do Hibernate query using like and %? Hibernate 5.2本机查询与void函数Postgresql - Hibernate 5.2 Native Query with void function Postgresql 如何在sql查询“date like :today”中使用hibernate的where条件中的日期字段使用setParameter - how to use setParameter for date field in where condition in sql query " date like :today " using hibernate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM