Skip to content

Commit

Permalink
feat: change packages location to sample.mixbookingdb
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriidenisenko committed Dec 14, 2024
1 parent 2561b49 commit ad07cea
Show file tree
Hide file tree
Showing 81 changed files with 192 additions and 192 deletions.
2 changes: 1 addition & 1 deletion bookingdb-support/batch-job/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<description>Batch Jobs Support</description>

<parent>
<groupId>com.iqkv.incubator.sample.bookingdb</groupId>
<groupId>com.iqkv.incubator.sample.mixbookingdb</groupId>
<artifactId>bookingdb-support</artifactId>
<version>24.0.0-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.jobs;
package com.iqkv.incubator.sample.mixbookingdb.jobs;

import java.io.Serial;
import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.jobs;
package com.iqkv.incubator.sample.mixbookingdb.jobs;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.jobs;
package com.iqkv.incubator.sample.mixbookingdb.jobs;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.jobs;
package com.iqkv.incubator.sample.mixbookingdb.jobs;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.jobs;
package com.iqkv.incubator.sample.mixbookingdb.jobs;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.jobs;
package com.iqkv.incubator.sample.mixbookingdb.jobs;

import java.time.Instant;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.jobs;
package com.iqkv.incubator.sample.mixbookingdb.jobs;

public enum JobType {
IMPORT_COUNTRIES,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.iqkv.incubator.sample.bookingdb.jobs;
package com.iqkv.incubator.sample.mixbookingdb.jobs;

import com.iqkv.incubator.sample.bookingdb.jobs.amqp.AmqpQueuesProperties;
import com.iqkv.incubator.sample.mixbookingdb.jobs.amqp.AmqpQueuesProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.iqkv.incubator.sample.bookingdb.jobs.amqp;
package com.iqkv.incubator.sample.mixbookingdb.jobs.amqp;

import com.iqkv.incubator.sample.bookingdb.jobs.AbstractJobParameters;
import com.iqkv.incubator.sample.mixbookingdb.jobs.AbstractJobParameters;
import org.springframework.amqp.rabbit.core.RabbitTemplate;

public abstract class AbstractProducer {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.jobs.amqp;
package com.iqkv.incubator.sample.mixbookingdb.jobs.amqp;

import jakarta.validation.constraints.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.jobs.amqp;
package com.iqkv.incubator.sample.mixbookingdb.jobs.amqp;

import lombok.RequiredArgsConstructor;
import org.springframework.amqp.core.AmqpAdmin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.iqkv.incubator.sample.bookingdb.jobs.annotation;
package com.iqkv.incubator.sample.mixbookingdb.jobs.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.iqkv.incubator.sample.bookingdb.jobs.JobsConfiguration;
import com.iqkv.incubator.sample.bookingdb.jobs.amqp.CommonAmqpConfig;
import com.iqkv.incubator.sample.mixbookingdb.jobs.JobsConfiguration;
import com.iqkv.incubator.sample.mixbookingdb.jobs.amqp.CommonAmqpConfig;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
Expand All @@ -15,6 +15,6 @@
@Target({ElementType.TYPE})
@Import({JobsConfiguration.class, CommonAmqpConfig.class})
@Configuration
@ComponentScan("com.iqkv.incubator.sample.bookingdb.jobs")
@ComponentScan("com.iqkv.incubator.sample.mixbookingdb.jobs")
public @interface EnableJobSupport {
}
2 changes: 1 addition & 1 deletion bookingdb-support/booking-api-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


<parent>
<groupId>com.iqkv.incubator.sample.bookingdb</groupId>
<groupId>com.iqkv.incubator.sample.mixbookingdb</groupId>
<artifactId>bookingdb-support</artifactId>
<version>24.0.0-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.iqkv.incubator.sample.bookingdb.apiclient.annotation;
package com.iqkv.incubator.sample.mixbookingdb.apiclient.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.iqkv.incubator.sample.bookingdb.apiclient.config.ClientConfig;
import com.iqkv.incubator.sample.mixbookingdb.apiclient.config.ClientConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.apiclient.client;
package com.iqkv.incubator.sample.mixbookingdb.apiclient.client;

import java.io.IOException;
import java.net.http.HttpClient;
Expand All @@ -8,8 +8,8 @@
import java.util.Base64;
import java.util.Map;

import com.iqkv.incubator.sample.bookingdb.apiclient.config.NetClientProperties;
import com.iqkv.incubator.sample.bookingdb.apiclient.exception.NetClientCommunicationException;
import com.iqkv.incubator.sample.mixbookingdb.apiclient.config.NetClientProperties;
import com.iqkv.incubator.sample.mixbookingdb.apiclient.exception.NetClientCommunicationException;
import org.springframework.web.util.UriComponentsBuilder;

public class AbstractNetClient {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.iqkv.incubator.sample.bookingdb.apiclient.client;
package com.iqkv.incubator.sample.mixbookingdb.apiclient.client;

import java.util.Map;

import com.iqkv.incubator.sample.bookingdb.apiclient.config.NetClientProperties;
import com.iqkv.incubator.sample.mixbookingdb.apiclient.config.NetClientProperties;
import org.springframework.stereotype.Service;

@Service
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.iqkv.incubator.sample.bookingdb.apiclient.config;
package com.iqkv.incubator.sample.mixbookingdb.apiclient.config;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.iqkv.incubator.sample.bookingdb.apiclient.*")
@ComponentScan("com.iqkv.incubator.sample.mixbookingdb.apiclient.*")
@EnableConfigurationProperties(NetClientProperties.class)
public class ClientConfig {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.apiclient.config;
package com.iqkv.incubator.sample.mixbookingdb.apiclient.config;

import jakarta.validation.constraints.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.apiclient.exception;
package com.iqkv.incubator.sample.mixbookingdb.apiclient.exception;

public class NetClientCommunicationException extends RuntimeException {
public NetClientCommunicationException(Throwable cause) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.apiclient.exception;
package com.iqkv.incubator.sample.mixbookingdb.apiclient.exception;

public class NetClientMisconfigurationException extends IllegalStateException {
public NetClientMisconfigurationException(Throwable cause) {
Expand Down
2 changes: 1 addition & 1 deletion bookingdb-support/booking-persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<description>Common repositories and entities</description>

<parent>
<groupId>com.iqkv.incubator.sample.bookingdb</groupId>
<groupId>com.iqkv.incubator.sample.mixbookingdb</groupId>
<artifactId>bookingdb-support</artifactId>
<version>24.0.0-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.iqkv.incubator.sample.bookingdb.persistence.annotation;
package com.iqkv.incubator.sample.mixbookingdb.persistence.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.iqkv.incubator.sample.bookingdb.persistence.config.CacheConfig;
import com.iqkv.incubator.sample.bookingdb.persistence.config.PersistenceConfig;
import com.iqkv.incubator.sample.mixbookingdb.persistence.config.CacheConfig;
import com.iqkv.incubator.sample.mixbookingdb.persistence.config.PersistenceConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.iqkv.incubator.sample.bookingdb.persistence.config;
package com.iqkv.incubator.sample.mixbookingdb.persistence.config;

import java.time.Duration;

import com.iqkv.boot.cache.CacheProperties;
import com.iqkv.incubator.sample.bookingdb.persistence.entity.City;
import com.iqkv.incubator.sample.bookingdb.persistence.entity.Country;
import com.iqkv.incubator.sample.bookingdb.persistence.entity.Hotel;
import com.iqkv.incubator.sample.mixbookingdb.persistence.entity.City;
import com.iqkv.incubator.sample.mixbookingdb.persistence.entity.Country;
import com.iqkv.incubator.sample.mixbookingdb.persistence.entity.Hotel;
import org.ehcache.config.builders.CacheConfigurationBuilder;
import org.ehcache.config.builders.ExpiryPolicyBuilder;
import org.ehcache.config.builders.ResourcePoolsBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.persistence.config;
package com.iqkv.incubator.sample.mixbookingdb.persistence.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
Expand All @@ -7,8 +7,8 @@
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@EnableJpaRepositories({"com.iqkv.incubator.sample.bookingdb.persistence.repository"})
@EntityScan({"com.iqkv.incubator.sample.bookingdb.persistence.entity"})
@EnableJpaRepositories({"com.iqkv.incubator.sample.mixbookingdb.persistence.repository"})
@EntityScan({"com.iqkv.incubator.sample.mixbookingdb.persistence.entity"})
@EnableJpaAuditing
@EnableTransactionManagement
public class PersistenceConfig {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.persistence.converter;
package com.iqkv.incubator.sample.mixbookingdb.persistence.converter;

import jakarta.persistence.AttributeConverter;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.persistence.entity;
package com.iqkv.incubator.sample.mixbookingdb.persistence.entity;

import jakarta.persistence.CascadeType;
import jakarta.persistence.Entity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.persistence.entity;
package com.iqkv.incubator.sample.mixbookingdb.persistence.entity;

import jakarta.persistence.CascadeType;
import jakarta.persistence.Entity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.persistence.entity;
package com.iqkv.incubator.sample.mixbookingdb.persistence.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Convert;
Expand All @@ -14,7 +14,7 @@

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.iqkv.incubator.sample.bookingdb.persistence.converter.HashMapConverter;
import com.iqkv.incubator.sample.mixbookingdb.persistence.converter.HashMapConverter;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.iqkv.incubator.sample.bookingdb.persistence.repository;
package com.iqkv.incubator.sample.mixbookingdb.persistence.repository;

import java.util.List;
import java.util.Optional;

import com.iqkv.incubator.sample.bookingdb.persistence.entity.City;
import com.iqkv.incubator.sample.mixbookingdb.persistence.entity.City;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.iqkv.incubator.sample.bookingdb.persistence.repository;
package com.iqkv.incubator.sample.mixbookingdb.persistence.repository;

import java.util.List;
import java.util.Optional;

import com.iqkv.incubator.sample.bookingdb.persistence.entity.Country;
import com.iqkv.incubator.sample.mixbookingdb.persistence.entity.Country;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.iqkv.incubator.sample.bookingdb.persistence.repository;
package com.iqkv.incubator.sample.mixbookingdb.persistence.repository;

import com.iqkv.incubator.sample.bookingdb.persistence.entity.Hotel;
import com.iqkv.incubator.sample.mixbookingdb.persistence.entity.Hotel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

Expand Down
6 changes: 3 additions & 3 deletions bookingdb-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.iqkv.incubator.sample.bookingdb</groupId>
<groupId>com.iqkv.incubator.sample.mixbookingdb</groupId>
<artifactId>bookingdb-support</artifactId>
<version>24.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>bookingdb-support</name>
<parent>
<groupId>com.iqkv.incubator.sample.bookingdb</groupId>
<artifactId>sample-bookingdb</artifactId>
<groupId>com.iqkv.incubator.sample.mixbookingdb</groupId>
<artifactId>sample-mix-bookingdb</artifactId>
<version>24.0.0-SNAPSHOT</version>
</parent>

Expand Down
10 changes: 5 additions & 5 deletions dashboard-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<description>Admin REST API Service</description>

<parent>
<groupId>com.iqkv.incubator.sample.bookingdb</groupId>
<artifactId>sample-bookingdb</artifactId>
<groupId>com.iqkv.incubator.sample.mixbookingdb</groupId>
<artifactId>sample-mix-bookingdb</artifactId>
<version>24.0.0-SNAPSHOT</version>
</parent>

Expand All @@ -22,16 +22,16 @@
<maven.compiler.target>${java.version}</maven.compiler.target>
<checkstyle.skip>false</checkstyle.skip>
<maven.gitcommitid.skip>false</maven.gitcommitid.skip>
<start-class>com.iqkv.incubator.sample.bookingdb.dashboard.DashboardApplication</start-class>
<start-class>com.iqkv.incubator.sample.mixbookingdb.dashboard.DashboardApplication</start-class>
</properties>

<dependencies>
<dependency>
<groupId>com.iqkv.incubator.sample.bookingdb</groupId>
<groupId>com.iqkv.incubator.sample.mixbookingdb</groupId>
<artifactId>batch-job</artifactId>
</dependency>
<dependency>
<groupId>com.iqkv.incubator.sample.bookingdb</groupId>
<groupId>com.iqkv.incubator.sample.mixbookingdb</groupId>
<artifactId>booking-persistence</artifactId>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iqkv.incubator.sample.bookingdb.dashboard;
package com.iqkv.incubator.sample.mixbookingdb.dashboard;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.iqkv.incubator.sample.bookingdb.dashboard.config;
package com.iqkv.incubator.sample.mixbookingdb.dashboard.config;

import com.iqkv.incubator.sample.bookingdb.jobs.annotation.EnableJobSupport;
import com.iqkv.incubator.sample.bookingdb.persistence.annotation.EnableBookingPersistence;
import com.iqkv.incubator.sample.mixbookingdb.jobs.annotation.EnableJobSupport;
import com.iqkv.incubator.sample.mixbookingdb.persistence.annotation.EnableBookingPersistence;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Info;
import org.springframework.context.annotation.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.iqkv.incubator.sample.bookingdb.dashboard.producer;
package com.iqkv.incubator.sample.mixbookingdb.dashboard.producer;

import com.iqkv.incubator.sample.bookingdb.jobs.CitiesImportParameters;
import com.iqkv.incubator.sample.bookingdb.jobs.CityHotelsImportParameters;
import com.iqkv.incubator.sample.bookingdb.jobs.CountriesImportParameters;
import com.iqkv.incubator.sample.bookingdb.jobs.HotelsImportParameters;
import com.iqkv.incubator.sample.bookingdb.jobs.JobParameters;
import com.iqkv.incubator.sample.bookingdb.jobs.amqp.AbstractProducer;
import com.iqkv.incubator.sample.bookingdb.jobs.amqp.AmqpQueuesProperties;
import com.iqkv.incubator.sample.mixbookingdb.jobs.CitiesImportParameters;
import com.iqkv.incubator.sample.mixbookingdb.jobs.CityHotelsImportParameters;
import com.iqkv.incubator.sample.mixbookingdb.jobs.CountriesImportParameters;
import com.iqkv.incubator.sample.mixbookingdb.jobs.HotelsImportParameters;
import com.iqkv.incubator.sample.mixbookingdb.jobs.JobParameters;
import com.iqkv.incubator.sample.mixbookingdb.jobs.amqp.AbstractProducer;
import com.iqkv.incubator.sample.mixbookingdb.jobs.amqp.AmqpQueuesProperties;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;

Expand Down
Loading

0 comments on commit ad07cea

Please sign in to comment.