Skip to content

Commit

Permalink
test: added Library repository interface
Browse files Browse the repository at this point in the history
Signed-off-by: Maximillian Arruda <dearrudam@gmail.com>
  • Loading branch information
dearrudam committed May 23, 2023
1 parent 26e5edd commit ea5e257
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

/*
* Copyright (c) 2023 Contributors to the Eclipse Foundation
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
*
* You may elect to redistribute this code under either of these licenses.
*
* Contributors:
*
* Maximillian Arruda
*
*/
package org.eclipse.jnosql.databases.couchbase.integration;

import jakarta.data.repository.Repository;
import org.eclipse.jnosql.databases.couchbase.mapping.CouchbaseRepository;

import java.util.stream.Stream;

@Repository
public interface Library extends CouchbaseRepository<Book, String> {

Stream<Book> findByEditionLessThan(Integer edition);

Stream<Book> findByEditionGreaterThan(Integer edition);

Stream<Book> findByTitleLike(String title);

}

0 comments on commit ea5e257

Please sign in to comment.