poussecafe.journal.domain.JournalEntryRepository Maven / Gradle / Ivy
package poussecafe.journal.domain;
import java.util.List;
import poussecafe.domain.Repository;
public class JournalEntryRepository extends Repository {
public List findByConsumptionId(String messageId) {
return wrap(dataAccess().findByMessageId(messageId));
}
@Override
public JournalEntryDataAccess dataAccess() {
return (JournalEntryDataAccess) super.dataAccess();
}
public List findByStatus(ConsumptionStatus status) {
return wrap(dataAccess().findByStatus(status));
}
}