Package com.gestorrh.api.repository
Interface TurnoRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Turno,,Long> org.springframework.data.jpa.repository.JpaRepository<Turno,,Long> org.springframework.data.repository.ListCrudRepository<Turno,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Turno,,Long> org.springframework.data.repository.PagingAndSortingRepository<Turno,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Turno>,org.springframework.data.repository.Repository<Turno,Long>
@Repository
public interface TurnoRepository
extends org.springframework.data.jpa.repository.JpaRepository<Turno,Long>
Repositorio para gestionar las operaciones de base de datos de la entidad
Turno.
Permite definir los diferentes horarios y turnos de trabajo que una empresa puede asignar.-
Method Summary
Modifier and TypeMethodDescriptionfindByEmpresaIdEmpresa(Long idEmpresa) Recupera todos los turnos configurados por una empresa específica.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByEmpresaIdEmpresa
Recupera todos los turnos configurados por una empresa específica. Fundamental para garantizar el aislamiento de datos entre empresas (Multi-Tenant).- Parameters:
idEmpresa- El ID de la empresa.- Returns:
- Lista de turnos pertenecientes a la empresa.
-