Preciso saber o tipo de retorno que o Spring JPA retorna pra colocar no pacote Service, pois está dando um NullPointerException
:
Dao:
public interface PlaylistDao extends JpaRepository<Playlist, Long> {
@Query("select count(*) from Playlist")
public int verifica();
}
Service:
@Service
@Transactional
public class PlaylistServiceImpl implements PlaylistService {
@Autowired
private PlaylistDao dao;
public int verifica(){
return dao.verifica();
}
}