You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
673 B
24 lines
673 B
package de.kreth.clubhelper.model.dao;
|
|
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDateTime;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
import org.springframework.data.repository.CrudRepository;
|
|
|
|
import de.kreth.clubhelper.model.data.Attendance;
|
|
import de.kreth.clubhelper.model.data.Person;
|
|
|
|
public interface AttendanceDao extends CrudRepository<Attendance, Long> {
|
|
|
|
List<Attendance> findByOnDate(LocalDate onDate);
|
|
|
|
List<Attendance> findByPerson(Person person);
|
|
|
|
Attendance findByPersonAndOnDate(Person person, Date onDate);
|
|
|
|
List<Attendance> findByPersonId(long personId);
|
|
|
|
List<Attendance> findByChangedGreaterThan(LocalDateTime date);
|
|
}
|
|
|