| 1 | package com.tecmilenio.mapsconect.repository; |
| 2 | |
| 3 | import com.tecmilenio.mapsconect.entity.EmpresaVinculada; |
| 4 | import org.springframework.data.jpa.repository.JpaRepository; |
| 5 | import org.springframework.stereotype.Repository; |
| 6 | |
| 7 | import java.util.List; |
| 8 | |
| 9 | @Repository |
| 10 | public interface EmpresaVinculadaRepository extends JpaRepository<EmpresaVinculada, Integer> { |
| 11 | |
| 12 | List<EmpresaVinculada> findByActivaTrueAndNombreContainingIgnoreCase(String nombre); |
| 13 | |
| 14 | List<EmpresaVinculada> findByActivaTrue(); |
| 15 | |
| 16 | } |