Skip to content

Commit

Permalink
Merge pull request #561 from KyleAure/future-prof-provider-name
Browse files Browse the repository at this point in the history
refactor: update provider name to be more compatible with Jakarta Config
  • Loading branch information
otaviojava authored Dec 13, 2024
2 parents bab903f + 6d559ae commit dac8165
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 dac8165

Please sign in to comment.