package com.ciandt.techgallery.persistence.dao; import com.ciandt.techgallery.persistence.model.Technology; import com.ciandt.techgallery.persistence.model.TechnologyComment; import java.util.Date; import java.util.List; /** * Interface of TechnologyComment * * @author <a href="mailto:joaom@ciandt.com"> João Felipe de Medeiros Moreira </a> * @since 22/09/2015 * */ public interface TechnologyCommentDAO extends GenericDAO<TechnologyComment, Long> { /** * Method to find all the comments of a technology. * * @param technology to filter the comments. * * @return all comments of that technology. */ List<TechnologyComment> findAllActivesByTechnology(Technology technology); /** * Find all comments of a technology starting from date. * * @param technology. * @param start date. * @return list of comments starting from a specific date. */ List<TechnologyComment> findAllCommentsStartingFrom(Technology technology, Date date); }