Created
January 4, 2017 18:40
-
-
Save netodevel/98e947470901123c69de12f000985c63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.paydomestic.service; | |
import java.util.Date; | |
import java.util.List; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.data.jpa.repository.JpaRepository; | |
import org.springframework.stereotype.Service; | |
import org.springframework.transaction.annotation.Transactional; | |
import br.com.paydomestic.model.TabelaINSS; | |
import br.com.paydomestic.repository.TabelaINSSRepository; | |
@Service | |
@Transactional | |
public class TabelaINSSService extends AbstractService<TabelaINSS, Integer> { | |
@Autowired | |
private TabelaINSSRepository tabelaINSSRepository; | |
public List<TabelaINSS> findByAno(Date date) { | |
return tabelaINSSRepository.findByAno(date); | |
} | |
@Override | |
public JpaRepository<TabelaINSS, Integer> getRepository() { | |
return tabelaINSSRepository; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment