Skip to content

Commit

Permalink
chore: migrate to dev.knowhowto space
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Denysenko committed Nov 14, 2023
1 parent 3faa80a commit e45041f
Show file tree
Hide file tree
Showing 83 changed files with 197 additions and 197 deletions.
4 changes: 2 additions & 2 deletions 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>org.ujar.sample-bookingdb-mix-rest-graphql-amqp</groupId>
<groupId>dev.knowhowto.sample-bookingdb-mix-rest-graphql-amqp</groupId>
<artifactId>bookingdb-support</artifactId>
<version>23.0.0-SNAPSHOT</version>
</parent>
Expand All @@ -24,7 +24,7 @@

<dependencies>
<dependency>
<groupId>org.ujar.boot</groupId>
<groupId>dev.knowhowto.boot</groupId>
<artifactId>boot-starter-amqp</artifactId>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.jobs;
package dev.knowhowto.bookingdb.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 org.ujar.bookingdb.jobs;
package dev.knowhowto.bookingdb.jobs;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.jobs;
package dev.knowhowto.bookingdb.jobs;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.jobs;
package dev.knowhowto.bookingdb.jobs;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.jobs;
package dev.knowhowto.bookingdb.jobs;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.jobs;
package dev.knowhowto.bookingdb.jobs;

import java.time.Instant;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.jobs;
package dev.knowhowto.bookingdb.jobs;

public enum JobType {
IMPORT_COUNTRIES,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.ujar.bookingdb.jobs;
package dev.knowhowto.bookingdb.jobs;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.ujar.bookingdb.jobs.amqp.AmqpQueuesProperties;
import dev.knowhowto.bookingdb.jobs.amqp.AmqpQueuesProperties;

@Configuration
@EnableConfigurationProperties({AmqpQueuesProperties.class})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.ujar.bookingdb.jobs.amqp;
package dev.knowhowto.bookingdb.jobs.amqp;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.ujar.bookingdb.jobs.AbstractJobParameters;
import dev.knowhowto.bookingdb.jobs.AbstractJobParameters;

public abstract class AbstractProducer {
protected final RabbitTemplate template;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.jobs.amqp;
package dev.knowhowto.bookingdb.jobs.amqp;

import jakarta.validation.constraints.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.jobs.amqp;
package dev.knowhowto.bookingdb.jobs.amqp;

import lombok.RequiredArgsConstructor;
import org.springframework.amqp.core.AmqpAdmin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.jobs.annotation;
package dev.knowhowto.bookingdb.jobs.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand All @@ -8,13 +8,13 @@
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.ujar.bookingdb.jobs.JobsConfiguration;
import org.ujar.bookingdb.jobs.amqp.CommonAmqpConfig;
import dev.knowhowto.bookingdb.jobs.JobsConfiguration;
import dev.knowhowto.bookingdb.jobs.amqp.CommonAmqpConfig;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Import({JobsConfiguration.class, CommonAmqpConfig.class})
@Configuration
@ComponentScan("org.ujar.bookingdb.jobs")
@ComponentScan("dev.knowhowto.bookingdb.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>org.ujar.sample-bookingdb-mix-rest-graphql-amqp</groupId>
<groupId>dev.knowhowto.sample-bookingdb-mix-rest-graphql-amqp</groupId>
<artifactId>bookingdb-support</artifactId>
<version>23.0.0-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.apiclient.annotation;
package dev.knowhowto.bookingdb.apiclient.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand All @@ -7,7 +7,7 @@

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.ujar.bookingdb.apiclient.config.ClientConfig;
import dev.knowhowto.bookingdb.apiclient.config.ClientConfig;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.apiclient.client;
package dev.knowhowto.bookingdb.apiclient.client;

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

import org.springframework.web.util.UriComponentsBuilder;
import org.ujar.bookingdb.apiclient.config.NetClientProperties;
import org.ujar.bookingdb.apiclient.exception.NetClientCommunicationException;
import dev.knowhowto.bookingdb.apiclient.config.NetClientProperties;
import dev.knowhowto.bookingdb.apiclient.exception.NetClientCommunicationException;

public class AbstractNetClient {
protected static final String LANGUAGE_CODE = "en";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.ujar.bookingdb.apiclient.client;
package dev.knowhowto.bookingdb.apiclient.client;

import java.util.Map;

import org.springframework.stereotype.Service;
import org.ujar.bookingdb.apiclient.config.NetClientProperties;
import dev.knowhowto.bookingdb.apiclient.config.NetClientProperties;

@Service
public class BookingcomNetClient extends AbstractNetClient {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.ujar.bookingdb.apiclient.config;
package dev.knowhowto.bookingdb.apiclient.config;

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

@Configuration
@ComponentScan("org.ujar.bookingdb.apiclient.*")
@ComponentScan("dev.knowhowto.bookingdb.apiclient.*")
@EnableConfigurationProperties(NetClientProperties.class)
public class ClientConfig {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.apiclient.config;
package dev.knowhowto.bookingdb.apiclient.config;

import jakarta.validation.constraints.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.apiclient.exception;
package dev.knowhowto.bookingdb.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 org.ujar.bookingdb.apiclient.exception;
package dev.knowhowto.bookingdb.apiclient.exception;

public class NetClientMisconfigurationException extends IllegalStateException {
public NetClientMisconfigurationException(Throwable cause) {
Expand Down
4 changes: 2 additions & 2 deletions 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>org.ujar.sample-bookingdb-mix-rest-graphql-amqp</groupId>
<groupId>dev.knowhowto.sample-bookingdb-mix-rest-graphql-amqp</groupId>
<artifactId>bookingdb-support</artifactId>
<version>23.0.0-SNAPSHOT</version>
</parent>
Expand All @@ -24,7 +24,7 @@

<dependencies>
<dependency>
<groupId>org.ujar.boot</groupId>
<groupId>dev.knowhowto.boot</groupId>
<artifactId>boot-starter-cache</artifactId>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.persistence.annotation;
package dev.knowhowto.bookingdb.persistence.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand All @@ -7,8 +7,8 @@

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.ujar.bookingdb.persistence.config.CacheConfig;
import org.ujar.bookingdb.persistence.config.PersistenceConfig;
import dev.knowhowto.bookingdb.persistence.config.CacheConfig;
import dev.knowhowto.bookingdb.persistence.config.PersistenceConfig;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.persistence.config;
package dev.knowhowto.bookingdb.persistence.config;

import java.time.Duration;

Expand All @@ -12,10 +12,10 @@
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.ujar.bookingdb.persistence.entity.City;
import org.ujar.bookingdb.persistence.entity.Country;
import org.ujar.bookingdb.persistence.entity.Hotel;
import org.ujar.boot.cache.CacheProperties;
import dev.knowhowto.bookingdb.persistence.entity.City;
import dev.knowhowto.bookingdb.persistence.entity.Country;
import dev.knowhowto.bookingdb.persistence.entity.Hotel;
import dev.knowhowto.boot.cache.CacheProperties;

@Configuration
@EnableCaching
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.persistence.config;
package dev.knowhowto.bookingdb.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({"org.ujar.bookingdb.persistence.repository"})
@EntityScan({"org.ujar.bookingdb.persistence.entity"})
@EnableJpaRepositories({"dev.knowhowto.bookingdb.persistence.repository"})
@EntityScan({"dev.knowhowto.bookingdb.persistence.entity"})
@EnableJpaAuditing
@EnableTransactionManagement
public class PersistenceConfig {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ujar.bookingdb.persistence.converter;
package dev.knowhowto.bookingdb.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 org.ujar.bookingdb.persistence.entity;
package dev.knowhowto.bookingdb.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 org.ujar.bookingdb.persistence.entity;
package dev.knowhowto.bookingdb.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 org.ujar.bookingdb.persistence.entity;
package dev.knowhowto.bookingdb.persistence.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Convert;
Expand All @@ -18,7 +18,7 @@
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.ujar.bookingdb.persistence.converter.HashMapConverter;
import dev.knowhowto.bookingdb.persistence.converter.HashMapConverter;

@Entity
@Getter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.ujar.bookingdb.persistence.repository;
package dev.knowhowto.bookingdb.persistence.repository;

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

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.ujar.bookingdb.persistence.entity.City;
import dev.knowhowto.bookingdb.persistence.entity.City;

public interface CityRepository
extends PagingAndSortingRepository<City, Long>, JpaRepository<City, Long> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.ujar.bookingdb.persistence.repository;
package dev.knowhowto.bookingdb.persistence.repository;

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

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.ujar.bookingdb.persistence.entity.Country;
import dev.knowhowto.bookingdb.persistence.entity.Country;

public interface CountryRepository
extends PagingAndSortingRepository<Country, Long>, JpaRepository<Country, Long> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.ujar.bookingdb.persistence.repository;
package dev.knowhowto.bookingdb.persistence.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.ujar.bookingdb.persistence.entity.Hotel;
import dev.knowhowto.bookingdb.persistence.entity.Hotel;

public interface HotelRepository
extends PagingAndSortingRepository<Hotel, Long>, JpaRepository<Hotel, Long> {
Expand Down
4 changes: 2 additions & 2 deletions bookingdb-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
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>org.ujar.sample-bookingdb-mix-rest-graphql-amqp</groupId>
<groupId>dev.knowhowto.sample-bookingdb-mix-rest-graphql-amqp</groupId>
<artifactId>bookingdb-support</artifactId>
<version>23.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>bookingdb-support</name>
<parent>
<groupId>org.ujar.sample-bookingdb-mix-rest-graphql-amqp</groupId>
<groupId>dev.knowhowto.sample-bookingdb-mix-rest-graphql-amqp</groupId>
<artifactId>bookingdb</artifactId>
<version>23.0.0-SNAPSHOT</version>
</parent>
Expand Down
Loading

0 comments on commit e45041f

Please sign in to comment.