Skip to content

Commit ea5e257

Browse files
committed
test: added Library repository interface
Signed-off-by: Maximillian Arruda <[email protected]>
1 parent 26e5edd commit ea5e257

File tree

1 file changed

+33
-0
lines changed
  • jnosql-couchbase/src/test/java/org/eclipse/jnosql/databases/couchbase/integration

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
/*
3+
* Copyright (c) 2023 Contributors to the Eclipse Foundation
4+
* All rights reserved. This program and the accompanying materials
5+
* are made available under the terms of the Eclipse Public License v1.0
6+
* and Apache License v2.0 which accompanies this distribution.
7+
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
8+
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
9+
*
10+
* You may elect to redistribute this code under either of these licenses.
11+
*
12+
* Contributors:
13+
*
14+
* Maximillian Arruda
15+
*
16+
*/
17+
package org.eclipse.jnosql.databases.couchbase.integration;
18+
19+
import jakarta.data.repository.Repository;
20+
import org.eclipse.jnosql.databases.couchbase.mapping.CouchbaseRepository;
21+
22+
import java.util.stream.Stream;
23+
24+
@Repository
25+
public interface Library extends CouchbaseRepository<Book, String> {
26+
27+
Stream<Book> findByEditionLessThan(Integer edition);
28+
29+
Stream<Book> findByEditionGreaterThan(Integer edition);
30+
31+
Stream<Book> findByTitleLike(String title);
32+
33+
}

0 commit comments

Comments
 (0)