Merge pull request #8681 from kwoyke/BAEL-21730

BAEL-21730: Standardize packages in persistence-modules (part 1)
This commit is contained in:
Loredana Crusoveanu 2020-02-08 22:18:51 +02:00 committed by GitHub
commit fbbafeb4d2
30 changed files with 56 additions and 72 deletions

View File

@ -1,3 +1,3 @@
### Relevant articles ### Relevant articles
- [HBase with Java](http://www.baeldung.com/hbase) - [HBase with Java](https://www.baeldung.com/hbase)

View File

@ -1,4 +1,4 @@
package org.baeldung.hbase; package com.baeldung.hbase;
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HColumnDescriptor;

View File

@ -1,4 +1,4 @@
package org.baeldung.hbase; package com.baeldung.hbase;
import com.google.protobuf.ServiceException; import com.google.protobuf.ServiceException;

View File

@ -1,3 +1,3 @@
### Relevant Articles: ### Relevant Articles:
- [Intro to Querydsl](http://www.baeldung.com/intro-to-querydsl) - [Intro to Querydsl](https://www.baeldung.com/intro-to-querydsl)
- [A Guide to Querydsl with JPA](http://www.baeldung.com/querydsl-with-jpa-tutorial) - [A Guide to Querydsl with JPA](https://www.baeldung.com/querydsl-with-jpa-tutorial)

View File

@ -1,9 +1,9 @@
package org.baeldung.dao; package com.baeldung.dao;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.baeldung.entity.Person; import com.baeldung.entity.Person;
public interface PersonDao { public interface PersonDao {

View File

@ -1,17 +1,15 @@
package org.baeldung.dao; package com.baeldung.dao;
import java.util.List; import com.baeldung.entity.Person;
import java.util.Map; import com.baeldung.entity.QPerson;
import com.querydsl.core.group.GroupBy;
import com.querydsl.jpa.impl.JPAQuery;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext; import javax.persistence.PersistenceContext;
import java.util.List;
import org.baeldung.entity.Person; import java.util.Map;
import org.baeldung.entity.QPerson;
import org.springframework.stereotype.Repository;
import com.querydsl.core.group.GroupBy;
import com.querydsl.jpa.impl.JPAQuery;
@Repository @Repository
public class PersonDaoImpl implements PersonDao { public class PersonDaoImpl implements PersonDao {

View File

@ -1,4 +1,4 @@
package org.baeldung.entity; package com.baeldung.entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;

View File

@ -1,7 +1,7 @@
/* /*
* (c) Центр ИТ, 2016. Все права защищены. * (c) Центр ИТ, 2016. Все права защищены.
*/ */
package org.baeldung.querydsl.intro.entities; package com.baeldung.querydsl.intro.entities;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;

View File

@ -1,7 +1,7 @@
/* /*
* (c) Центр ИТ, 2016. Все права защищены. * (c) Центр ИТ, 2016. Все права защищены.
*/ */
package org.baeldung.querydsl.intro.entities; package com.baeldung.querydsl.intro.entities;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;

View File

@ -17,7 +17,7 @@
</persistence-unit> </persistence-unit>
<!-- PersistenceUnit for Intro to QueryDSL --> <!-- PersistenceUnit for Intro to QueryDSL -->
<persistence-unit name="org.baeldung.querydsl.intro"> <persistence-unit name="com.baeldung.querydsl.intro">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<properties> <properties>
<property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver"/> <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver"/>

View File

@ -1,8 +1,8 @@
package org.baeldung.dao; package com.baeldung.dao;
import java.util.Map; import java.util.Map;
import org.baeldung.entity.Person; import com.baeldung.entity.Person;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,17 +1,17 @@
/* /*
* (c) Центр ИТ, 2016. Все права защищены. * (c) Центр ИТ, 2016. Все права защищены.
*/ */
package org.baeldung.querydsl.intro; package com.baeldung.querydsl.intro;
import com.baeldung.querydsl.intro.entities.BlogPost;
import com.baeldung.querydsl.intro.entities.QBlogPost;
import com.baeldung.querydsl.intro.entities.QUser;
import com.baeldung.querydsl.intro.entities.User;
import com.querydsl.core.Tuple; import com.querydsl.core.Tuple;
import com.querydsl.core.types.dsl.Expressions; import com.querydsl.core.types.dsl.Expressions;
import com.querydsl.core.types.dsl.NumberPath; import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.jpa.JPAExpressions; import com.querydsl.jpa.JPAExpressions;
import com.querydsl.jpa.impl.JPAQueryFactory; import com.querydsl.jpa.impl.JPAQueryFactory;
import org.baeldung.querydsl.intro.entities.BlogPost;
import org.baeldung.querydsl.intro.entities.QBlogPost;
import org.baeldung.querydsl.intro.entities.QUser;
import org.baeldung.querydsl.intro.entities.User;
import org.junit.*; import org.junit.*;
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
@ -31,7 +31,7 @@ public class QueryDSLIntegrationTest {
@BeforeClass @BeforeClass
public static void populateDatabase() { public static void populateDatabase() {
emf = Persistence.createEntityManagerFactory("org.baeldung.querydsl.intro"); emf = Persistence.createEntityManagerFactory("com.baeldung.querydsl.intro");
EntityManager em = emf.createEntityManager(); EntityManager em = emf.createEntityManager();
em.getTransaction().begin(); em.getTransaction().begin();

View File

@ -13,7 +13,7 @@
> >
<tx:annotation-driven /> <tx:annotation-driven />
<context:component-scan base-package="org.baeldung" /> <context:component-scan base-package="com.baeldung" />
<import resource="test-db.xml" /> <import resource="test-db.xml" />

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.baeldung.examples.r2dbc</groupId> <groupId>com.baeldung.examples.r2dbc</groupId>
<artifactId>r2dbc-example</artifactId> <artifactId>r2dbc-example</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>r2dbc-example</name> <name>r2dbc-example</name>

View File

@ -1,4 +1,4 @@
package org.baeldung.examples.r2dbc; package com.baeldung.examples.r2dbc;
import java.math.BigDecimal; import java.math.BigDecimal;

View File

@ -1,12 +1,8 @@
/** /**
* *
*/ */
package org.baeldung.examples.r2dbc; package com.baeldung.examples.r2dbc;
import java.math.BigDecimal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -15,8 +11,6 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import io.r2dbc.spi.Connection;
import io.r2dbc.spi.ConnectionFactory;
import reactor.core.publisher.Flux; import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;

View File

@ -1,16 +1,14 @@
package org.baeldung.examples.r2dbc; package com.baeldung.examples.r2dbc;
import org.springframework.boot.CommandLineRunner; import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.util.StringUtils;
import io.netty.util.internal.StringUtil; import io.netty.util.internal.StringUtil;
import io.r2dbc.spi.ConnectionFactories; import io.r2dbc.spi.ConnectionFactories;
import io.r2dbc.spi.ConnectionFactory; import io.r2dbc.spi.ConnectionFactory;
import io.r2dbc.spi.ConnectionFactoryOptions; import io.r2dbc.spi.ConnectionFactoryOptions;
import io.r2dbc.spi.ConnectionFactoryOptions.Builder; import io.r2dbc.spi.ConnectionFactoryOptions.Builder;
import io.r2dbc.spi.Option;
import reactor.core.publisher.Flux; import reactor.core.publisher.Flux;
import static io.r2dbc.spi.ConnectionFactoryOptions.*; import static io.r2dbc.spi.ConnectionFactoryOptions.*;

View File

@ -1,4 +1,4 @@
package org.baeldung.examples.r2dbc; package com.baeldung.examples.r2dbc;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;

View File

@ -1,4 +1,4 @@
package org.baeldung.examples.r2dbc; package com.baeldung.examples.r2dbc;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@ -1,9 +1,7 @@
package org.baeldung.examples.r2dbc; package com.baeldung.examples.r2dbc;
import java.math.BigDecimal; import java.math.BigDecimal;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import io.r2dbc.spi.Connection; import io.r2dbc.spi.Connection;

View File

@ -1,5 +1,5 @@
{"properties": [{ {"properties": [{
"name": "r2dbc", "name": "r2dbc",
"type": "org.baeldung.examples.r2dbc.R2DBCConfigurationProperties", "type": "com.baeldung.examples.r2dbc.R2DBCConfigurationProperties",
"description": "R2DBC Connection properties" "description": "R2DBC Connection properties"
}]} }]}

View File

@ -1,19 +1,15 @@
package org.baeldung.examples.r2dbc; package com.baeldung.examples.r2dbc;
import static org.hamcrest.CoreMatchers.*; import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import java.util.List; import java.util.List;
import org.hamcrest.core.IsNull;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.reactive.server.WebTestClient; import org.springframework.test.web.reactive.server.WebTestClient;

View File

@ -1,8 +1,8 @@
## Spring Data Cassandra ## Spring Data Cassandra
### Relevant Articles: ### Relevant Articles:
- [Introduction to Spring Data Cassandra](http://www.baeldung.com/spring-data-cassandra-tutorial) - [Introduction to Spring Data Cassandra](https://www.baeldung.com/spring-data-cassandra-tutorial)
- [Using the CassandraTemplate from Spring Data](http://www.baeldung.com/spring-data-cassandratemplate-cqltemplate) - [Using the CassandraTemplate from Spring Data](https://www.baeldung.com/spring-data-cassandratemplate-cqltemplate)
### Build the Project with Tests Running ### Build the Project with Tests Running
``` ```

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.cassandra.config; package com.baeldung.spring.data.cassandra.config;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -15,7 +15,7 @@ import org.springframework.data.cassandra.repository.config.EnableCassandraRepos
@Configuration @Configuration
@PropertySource(value = { "classpath:cassandra.properties" }) @PropertySource(value = { "classpath:cassandra.properties" })
@EnableCassandraRepositories(basePackages = "org.baeldung.spring.data.cassandra.repository") @EnableCassandraRepositories(basePackages = "com.baeldung.spring.data.cassandra.repository")
public class CassandraConfig extends AbstractCassandraConfiguration { public class CassandraConfig extends AbstractCassandraConfiguration {
private static final Log LOGGER = LogFactory.getLog(CassandraConfig.class); private static final Log LOGGER = LogFactory.getLog(CassandraConfig.class);

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.cassandra.model; package com.baeldung.spring.data.cassandra.model;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;

View File

@ -1,6 +1,6 @@
package org.baeldung.spring.data.cassandra.repository; package com.baeldung.spring.data.cassandra.repository;
import org.baeldung.spring.data.cassandra.model.Book; import com.baeldung.spring.data.cassandra.model.Book;
import org.springframework.data.cassandra.repository.CassandraRepository; import org.springframework.data.cassandra.repository.CassandraRepository;
import org.springframework.data.cassandra.repository.Query; import org.springframework.data.cassandra.repository.Query;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;

View File

@ -1,12 +1,12 @@
package org.baeldung; package com.baeldung;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import org.apache.cassandra.exceptions.ConfigurationException; import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.thrift.transport.TTransportException; import org.apache.thrift.transport.TTransportException;
import org.baeldung.spring.data.cassandra.config.CassandraConfig; import com.baeldung.spring.data.cassandra.config.CassandraConfig;
import org.baeldung.spring.data.cassandra.model.Book; import com.baeldung.spring.data.cassandra.model.Book;
import org.cassandraunit.utils.EmbeddedCassandraServerHelper; import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
import org.junit.After; import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.cassandra.repository; package com.baeldung.spring.data.cassandra.repository;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotEquals;
@ -6,12 +6,12 @@ import static org.junit.Assert.assertNotEquals;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import com.baeldung.spring.data.cassandra.model.Book;
import org.apache.cassandra.exceptions.ConfigurationException; import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.thrift.transport.TTransportException; import org.apache.thrift.transport.TTransportException;
import org.baeldung.spring.data.cassandra.config.CassandraConfig; import com.baeldung.spring.data.cassandra.config.CassandraConfig;
import org.baeldung.spring.data.cassandra.model.Book;
import org.cassandraunit.utils.EmbeddedCassandraServerHelper; import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
import org.junit.After; import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.cassandra.repository; package com.baeldung.spring.data.cassandra.repository;
import static junit.framework.TestCase.assertNull; import static junit.framework.TestCase.assertNull;
import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.is;
@ -10,12 +10,12 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import com.baeldung.spring.data.cassandra.config.CassandraConfig;
import com.baeldung.spring.data.cassandra.model.Book;
import org.apache.cassandra.exceptions.ConfigurationException; import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.thrift.transport.TTransportException; import org.apache.thrift.transport.TTransportException;
import org.baeldung.spring.data.cassandra.config.CassandraConfig;
import org.baeldung.spring.data.cassandra.model.Book;
import org.cassandraunit.utils.EmbeddedCassandraServerHelper; import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
import org.junit.After; import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.cassandra.repository; package com.baeldung.spring.data.cassandra.repository;
import static junit.framework.TestCase.assertEquals; import static junit.framework.TestCase.assertEquals;
@ -12,8 +12,8 @@ import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.thrift.transport.TTransportException; import org.apache.thrift.transport.TTransportException;
import org.baeldung.spring.data.cassandra.config.CassandraConfig; import com.baeldung.spring.data.cassandra.config.CassandraConfig;
import org.baeldung.spring.data.cassandra.model.Book; import com.baeldung.spring.data.cassandra.model.Book;
import org.cassandraunit.utils.EmbeddedCassandraServerHelper; import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
import org.junit.After; import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;