[英]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.