Skip to content

Commit

Permalink
refactor: update provider name to be more compatible with Jakarta Config
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAure committed Nov 15, 2024
1 parent f4be1c7 commit 6d559ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ enum RepositoryFilter implements Predicate<Class<?>> {

INSTANCE;

private static final String PROVIDER = "Eclipse JNoSQL"; //TODO move this to a public location accessible to users
private static final String PROVIDER = "Eclipse_JNoSQL"; //TODO move this to a public location accessible to users

@Override
public boolean test(Class<?> type) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void shouldReturnRepositories() {

assertThat(reepositores).hasSize(4)
.contains(Persons.class,
AnimalRepository.class,
AnimalRepository.class,
PersonRepository.class,
MovieRepository.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
import org.eclipse.jnosql.mapping.reflection.entities.NoSQLVendor;
import org.eclipse.jnosql.mapping.reflection.entities.Person;
import org.eclipse.jnosql.mapping.reflection.entities.PersonRepository;
import org.eclipse.jnosql.mapping.reflection.entities.NoSQLVendor;
import org.eclipse.jnosql.mapping.reflection.entities.Person;
import org.eclipse.jnosql.mapping.reflection.entities.PersonRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -102,7 +99,7 @@ private interface People extends BasicRepository<Person, Long> {
public interface Persons extends BasicRepository<Person, Long> {
}

@jakarta.data.repository.Repository(provider = "Eclipse JNoSQL")
@jakarta.data.repository.Repository(provider = "Eclipse_JNoSQL")
private interface Server extends BasicRepository<Computer, String> {
}

Expand Down

0 comments on commit 6d559ae

Please sign in to comment.