@Repository public interface SkillRepository extends org.springframework.data.jpa.repository.JpaRepository<Skill,Long>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteForTenant(Integer tenantId) |
List<Skill> |
findAllByTenantId(Integer tenantId) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAll@Query(value="select s from Skill s where s.tenantId = :tenantId order by LOWER(s.name)") List<Skill> findAllByTenantId(@Param(value="tenantId") Integer tenantId)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="delete from Skill s where s.tenantId = :tenantId")
void deleteForTenant(@Param(value="tenantId")
Integer tenantId)
Copyright © 2017–2019 JBoss by Red Hat. All rights reserved.