I am using Checkmarx security tool to scan my code. It is throwing Improper Resource Access Authorization error in the repository.
@Query(value="select * from mapping_table where project_id = :projectId", nativeQuery=true)
List<MappingTable> findByProjectId(@Param(PROJECT_ID) String projectId);