Untitled

mail@pastecode.io avatar
unknown
java
3 years ago
963 B
1
Indexable
Never
@RepositoryScaffoldingDefinition(generationName = "OGYREV.SZEKALSO")
public interface AlsohaziUlohelyNextNRepository extends UlohelyNextNRepository {

  default List<AlsohaziUlohely> findNextNAlsohaziUlohely(
      final AlsohaziUlohely starterSeat, final Integer numberOfSeats) {

    return findNextNSeatsGeneral(
        QDSLAlsohaziUlohely.alsohaziUlohely,
        List.of(c -> c.szektor, c -> c.sor, c -> c.szek),
        starterSeat,
        numberOfSeats,
        Optional.empty());
  }

  default List<AlsohaziUlohely> findNextNAlsohaziUlohelyFiltered(
          final AlsohaziUlohely starterSeat, final Integer numberOfSeats, final Function<QDSLAlsohaziUlohely, BooleanExpression> filter) {

    return findNextNSeatsGeneral(
            QDSLAlsohaziUlohely.alsohaziUlohely,
            List.of(c -> c.szektor, c -> c.sor, c -> c.szek),
            starterSeat,
            numberOfSeats,
            Optional.of(filter));

  }
}