public interface UserCountryRepository extends org.springframework.data.jpa.repository.JpaRepository<UserCountry,UserCountryPK>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteByEmail(String email) |
List<String> |
getCountriesForUser(String email) |
boolean |
verifyAuthorizationForCountry(String country,
String user) |
boolean |
verifyAuthorizationForId(String id,
String user) |
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushfindAllvoid deleteByEmail(String email)
@Query(value="select country from user_countries where email = ?1",
nativeQuery=true)
List<String> getCountriesForUser(String email)
@Query(value="select count(o.country) > 0 from organizations o left outer join user_countries uc on (o.country = uc.country) where o.id = ?1 and uc.email = ?2",
nativeQuery=true)
boolean verifyAuthorizationForId(String id,
String user)
Copyright © 2025. All rights reserved.