/** * Balero CMS Project: Proyecto 100% Mexicano de código libre. * Página Oficial: http://www.balerocms.com * * @author Anibal Gomez <anibalgomez@icloud.com> * @copyright Copyright (C) 2015 Neblina Software. Derechos reservados. * @license Licencia BSD; vea LICENSE.txt */ package com.neblina.balero.service.repository; import com.neblina.balero.domain.Comment; import org.springframework.data.domain.Pageable; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface CommentRepository extends CrudRepository<Comment, Long> { List<Comment> findAll(); Comment findOneById(Long id); Comment findOneByCode(String code); List<Comment> findAllByPostPermalink(String permalink); }