Skip to content

Instantly share code, notes, and snippets.

@netodevel
Created January 4, 2017 18:40
Show Gist options
  • Save netodevel/98e947470901123c69de12f000985c63 to your computer and use it in GitHub Desktop.
Save netodevel/98e947470901123c69de12f000985c63 to your computer and use it in GitHub Desktop.
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