Skip to content
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

refactor: update provider name to be more compatible with Jakarta Config #561

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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