ramackri commented on code in PR #970:
URL: https://github.com/apache/ranger/pull/970#discussion_r3301085011
##########
security-admin/src/main/resources/META-INF/jpa_named_queries.xml:
##########
@@ -2172,4 +2258,253 @@
<named-query name="XXPolicy.findByZoneId">
<query>select obj from XXPolicy obj where obj.zoneId =
:zoneId</query>
</named-query>
+
+ <named-query name="XXPolicy.findByServiceType">
+ <query>SELECT obj FROM XXPolicy obj
+ JOIN XXService xs ON obj.service = xs.id
+ JOIN XXServiceDef xsd ON xsd.id = xs.type
+ WHERE xsd.name = :serviceType</query>
+ </named-query>
+
+ <named-query name="XXPolicy.getSecurityZonePolicyCount">
+ <query>SELECT count(obj.id) FROM XXPolicy obj where obj.zoneId
IS NOT NULL AND obj.zoneId != :zoneId</query>
+ </named-query>
+
+ <named-query name="XXGdsDataset.findByGuid">
Review Comment:
Thanks @mneethiraj
I have removed GDS feature which is in master branch but not in
[ranger-2](https://issues.apache.org/jira/browse/RANGER-2).9 branch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]