Rename HawkBitBaseRepository -> HawkbitBaseRepository unify 'hawkbit' class names (#2076)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-11-18 14:44:32 +02:00
committed by GitHub
parent 3ab4885170
commit ad2d2b00bc
2 changed files with 7 additions and 7 deletions

View File

@@ -122,7 +122,7 @@ import org.eclipse.hawkbit.repository.jpa.repository.DistributionSetMetadataRepo
import org.eclipse.hawkbit.repository.jpa.repository.DistributionSetRepository;
import org.eclipse.hawkbit.repository.jpa.repository.DistributionSetTagRepository;
import org.eclipse.hawkbit.repository.jpa.repository.DistributionSetTypeRepository;
import org.eclipse.hawkbit.repository.jpa.repository.HawkBitBaseRepository;
import org.eclipse.hawkbit.repository.jpa.repository.HawkbitBaseRepository;
import org.eclipse.hawkbit.repository.jpa.repository.LocalArtifactRepository;
import org.eclipse.hawkbit.repository.jpa.repository.RolloutGroupRepository;
import org.eclipse.hawkbit.repository.jpa.repository.RolloutRepository;
@@ -1057,7 +1057,7 @@ public class RepositoryApplicationConfiguration extends JpaBaseConfiguration {
@Bean
@ConditionalOnMissingBean
BaseRepositoryTypeProvider baseRepositoryTypeProvider() {
return new HawkBitBaseRepository.RepositoryTypeProvider();
return new HawkbitBaseRepository.RepositoryTypeProvider();
}
/**

View File

@@ -35,14 +35,14 @@ import org.springframework.lang.Nullable;
* @param <T> the domain type the repository manages
* @param <ID> the type of the id of the entity the repository manages
*/
public class HawkBitBaseRepository<T, ID extends Serializable> extends SimpleJpaRepository<T, ID>
public class HawkbitBaseRepository<T, ID extends Serializable> extends SimpleJpaRepository<T, ID>
implements NoCountSliceRepository<T>, ACMRepository<T> {
public HawkBitBaseRepository(final Class<T> domainClass, final EntityManager em) {
public HawkbitBaseRepository(final Class<T> domainClass, final EntityManager em) {
super(domainClass, em);
}
public HawkBitBaseRepository(final JpaEntityInformation<T, ?> entityInformation, final EntityManager entityManager) {
public HawkbitBaseRepository(final JpaEntityInformation<T, ?> entityInformation, final EntityManager entityManager) {
super(entityInformation, entityManager);
}
@@ -121,13 +121,13 @@ public class HawkBitBaseRepository<T, ID extends Serializable> extends SimpleJpa
/**
* Simple implementation of {@link BaseRepositoryTypeProvider} leveraging our
* {@link HawkBitBaseRepository} for all current use cases
* {@link HawkbitBaseRepository} for all current use cases
*/
public static class RepositoryTypeProvider implements BaseRepositoryTypeProvider {
@Override
public Class<?> getBaseRepositoryType(final Class<?> repositoryType) {
return HawkBitBaseRepository.class;
return HawkbitBaseRepository.class;
}
}
}