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 Type
    Method
    Description
    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, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByEmpresaIdEmpresa

      List<Turno> findByEmpresaIdEmpresa(Long idEmpresa)
      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.