-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: added Library repository interface
Signed-off-by: Maximillian Arruda <dearrudam@gmail.com>
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...l-couchbase/src/test/java/org/eclipse/jnosql/databases/couchbase/integration/Library.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
} |