Skip to content

Add sample for reusable repository extensions #690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Polishing.
  • Loading branch information
mp911de authored and christophstrobl committed Nov 22, 2024
commit bfa14663929c2096d25e6d3b2150e7a3dcddd5e9
2 changes: 1 addition & 1 deletion mongodb/fragment-spi/atlas-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<parent>
<groupId>org.springframework.data.examples</groupId>
<artifactId>spring-data-mongodb-examples</artifactId>
<artifactId>spring-data-mongodb-fragment-spi</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public AtlasRepositoryFragment(@Autowired MongoOperations mongoOperations) {
public List<T> vectorSearch(String index, String path, List<Double> vector, Limit limit) {

RepositoryMethodContext metadata = RepositoryMethodContext.currentMethod();
Objects.requireNonNull(metadata);

Class<?> domainType = metadata.getRepository().getDomainType();
System.out.println("domainType: " + domainType);
Expand Down
2 changes: 1 addition & 1 deletion mongodb/fragment-spi/sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<parent>
<groupId>org.springframework.data.examples</groupId>
<artifactId>spring-data-mongodb-examples</artifactId>
<artifactId>spring-data-mongodb-fragment-spi</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
</parent>

Expand Down