blob: 7a3757281314159d2fa2090afb0ef86b27080a2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package org.onap.ransim.rest.api.repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import org.onap.ransim.rest.api.models.RRMPolicyRatio;
@Repository
public interface RRMPolicyRepository extends CrudRepository<RRMPolicyRatio,Integer>{
@Query(nativeQuery = true, value="select * from rrmpolicy where resourcetype=?1 and resourceid=?2")
public RRMPolicyRatio findByResourceTypeAndId(String resourceType, String resourceId);
}
|