Merge pull request #8681 from kwoyke/BAEL-21730
BAEL-21730: Standardize packages in persistence-modules (part 1)
This commit is contained in:
commit
fbbafeb4d2
|
@ -1,3 +1,3 @@
|
|||
### Relevant articles
|
||||
|
||||
- [HBase with Java](http://www.baeldung.com/hbase)
|
||||
- [HBase with Java](https://www.baeldung.com/hbase)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.hbase;
|
||||
package com.baeldung.hbase;
|
||||
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.hbase.HColumnDescriptor;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.hbase;
|
||||
package com.baeldung.hbase;
|
||||
|
||||
|
||||
import com.google.protobuf.ServiceException;
|
|
@ -1,3 +1,3 @@
|
|||
### Relevant Articles:
|
||||
- [Intro to Querydsl](http://www.baeldung.com/intro-to-querydsl)
|
||||
- [A Guide to Querydsl with JPA](http://www.baeldung.com/querydsl-with-jpa-tutorial)
|
||||
- [Intro to Querydsl](https://www.baeldung.com/intro-to-querydsl)
|
||||
- [A Guide to Querydsl with JPA](https://www.baeldung.com/querydsl-with-jpa-tutorial)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package org.baeldung.dao;
|
||||
package com.baeldung.dao;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.baeldung.entity.Person;
|
||||
import com.baeldung.entity.Person;
|
||||
|
||||
public interface PersonDao {
|
||||
|
|
@ -1,17 +1,15 @@
|
|||
package org.baeldung.dao;
|
||||
package com.baeldung.dao;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import com.baeldung.entity.Person;
|
||||
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.PersistenceContext;
|
||||
|
||||
import org.baeldung.entity.Person;
|
||||
import org.baeldung.entity.QPerson;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.querydsl.core.group.GroupBy;
|
||||
import com.querydsl.jpa.impl.JPAQuery;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Repository
|
||||
public class PersonDaoImpl implements PersonDao {
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.entity;
|
||||
package com.baeldung.entity;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* (c) Центр ИТ, 2016. Все права защищены.
|
||||
*/
|
||||
package org.baeldung.querydsl.intro.entities;
|
||||
package com.baeldung.querydsl.intro.entities;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* (c) Центр ИТ, 2016. Все права защищены.
|
||||
*/
|
||||
package org.baeldung.querydsl.intro.entities;
|
||||
package com.baeldung.querydsl.intro.entities;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
|
@ -17,7 +17,7 @@
|
|||
</persistence-unit>
|
||||
|
||||
<!-- 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>
|
||||
<properties>
|
||||
<property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver"/>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package org.baeldung.dao;
|
||||
package com.baeldung.dao;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.baeldung.entity.Person;
|
||||
import com.baeldung.entity.Person;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -1,17 +1,17 @@
|
|||
/*
|
||||
* (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.types.dsl.Expressions;
|
||||
import com.querydsl.core.types.dsl.NumberPath;
|
||||
import com.querydsl.jpa.JPAExpressions;
|
||||
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 javax.persistence.EntityManager;
|
||||
|
@ -31,7 +31,7 @@ public class QueryDSLIntegrationTest {
|
|||
|
||||
@BeforeClass
|
||||
public static void populateDatabase() {
|
||||
emf = Persistence.createEntityManagerFactory("org.baeldung.querydsl.intro");
|
||||
emf = Persistence.createEntityManagerFactory("com.baeldung.querydsl.intro");
|
||||
EntityManager em = emf.createEntityManager();
|
||||
|
||||
em.getTransaction().begin();
|
|
@ -13,7 +13,7 @@
|
|||
>
|
||||
|
||||
<tx:annotation-driven />
|
||||
<context:component-scan base-package="org.baeldung" />
|
||||
<context:component-scan base-package="com.baeldung" />
|
||||
|
||||
<import resource="test-db.xml" />
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.baeldung.examples.r2dbc</groupId>
|
||||
<groupId>com.baeldung.examples.r2dbc</groupId>
|
||||
<artifactId>r2dbc-example</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>r2dbc-example</name>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.examples.r2dbc;
|
||||
package com.baeldung.examples.r2dbc;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
|
@ -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.ResponseEntity;
|
||||
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.RestController;
|
||||
|
||||
import io.r2dbc.spi.Connection;
|
||||
import io.r2dbc.spi.ConnectionFactory;
|
||||
import reactor.core.publisher.Flux;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
|
@ -1,16 +1,14 @@
|
|||
package org.baeldung.examples.r2dbc;
|
||||
package com.baeldung.examples.r2dbc;
|
||||
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import io.netty.util.internal.StringUtil;
|
||||
import io.r2dbc.spi.ConnectionFactories;
|
||||
import io.r2dbc.spi.ConnectionFactory;
|
||||
import io.r2dbc.spi.ConnectionFactoryOptions;
|
||||
import io.r2dbc.spi.ConnectionFactoryOptions.Builder;
|
||||
import io.r2dbc.spi.Option;
|
||||
import reactor.core.publisher.Flux;
|
||||
|
||||
import static io.r2dbc.spi.ConnectionFactoryOptions.*;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.examples.r2dbc;
|
||||
package com.baeldung.examples.r2dbc;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.examples.r2dbc;
|
||||
package com.baeldung.examples.r2dbc;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
@ -1,9 +1,7 @@
|
|||
package org.baeldung.examples.r2dbc;
|
||||
package com.baeldung.examples.r2dbc;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import io.r2dbc.spi.Connection;
|
|
@ -1,5 +1,5 @@
|
|||
{"properties": [{
|
||||
"name": "r2dbc",
|
||||
"type": "org.baeldung.examples.r2dbc.R2DBCConfigurationProperties",
|
||||
"type": "com.baeldung.examples.r2dbc.R2DBCConfigurationProperties",
|
||||
"description": "R2DBC Connection properties"
|
||||
}]}
|
|
@ -1,19 +1,15 @@
|
|||
package org.baeldung.examples.r2dbc;
|
||||
package com.baeldung.examples.r2dbc;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.hamcrest.core.IsNull;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
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.test.context.junit4.SpringRunner;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
|
@ -1,8 +1,8 @@
|
|||
## Spring Data Cassandra
|
||||
|
||||
### Relevant Articles:
|
||||
- [Introduction to Spring Data Cassandra](http://www.baeldung.com/spring-data-cassandra-tutorial)
|
||||
- [Using the CassandraTemplate from Spring Data](http://www.baeldung.com/spring-data-cassandratemplate-cqltemplate)
|
||||
- [Introduction to Spring Data Cassandra](https://www.baeldung.com/spring-data-cassandra-tutorial)
|
||||
- [Using the CassandraTemplate from Spring Data](https://www.baeldung.com/spring-data-cassandratemplate-cqltemplate)
|
||||
|
||||
### Build the Project with Tests Running
|
||||
```
|
||||
|
|
|
@ -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.LogFactory;
|
||||
|
@ -15,7 +15,7 @@ import org.springframework.data.cassandra.repository.config.EnableCassandraRepos
|
|||
|
||||
@Configuration
|
||||
@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 {
|
||||
private static final Log LOGGER = LogFactory.getLog(CassandraConfig.class);
|
||||
|
|
@ -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.Set;
|
|
@ -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.Query;
|
||||
import org.springframework.stereotype.Repository;
|
|
@ -1,12 +1,12 @@
|
|||
package org.baeldung;
|
||||
package com.baeldung;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.apache.cassandra.exceptions.ConfigurationException;
|
||||
import org.apache.thrift.transport.TTransportException;
|
||||
import org.baeldung.spring.data.cassandra.config.CassandraConfig;
|
||||
import org.baeldung.spring.data.cassandra.model.Book;
|
||||
import com.baeldung.spring.data.cassandra.config.CassandraConfig;
|
||||
import com.baeldung.spring.data.cassandra.model.Book;
|
||||
import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
|
@ -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.assertNotEquals;
|
||||
|
@ -6,12 +6,12 @@ import static org.junit.Assert.assertNotEquals;
|
|||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
|
||||
import com.baeldung.spring.data.cassandra.model.Book;
|
||||
import org.apache.cassandra.exceptions.ConfigurationException;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.thrift.transport.TTransportException;
|
||||
import org.baeldung.spring.data.cassandra.config.CassandraConfig;
|
||||
import org.baeldung.spring.data.cassandra.model.Book;
|
||||
import com.baeldung.spring.data.cassandra.config.CassandraConfig;
|
||||
import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
|
@ -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 org.hamcrest.CoreMatchers.is;
|
||||
|
@ -10,12 +10,12 @@ import java.util.ArrayList;
|
|||
import java.util.HashMap;
|
||||
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.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
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.junit.After;
|
||||
import org.junit.AfterClass;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.spring.data.cassandra.repository;
|
||||
package com.baeldung.spring.data.cassandra.repository;
|
||||
|
||||
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.LogFactory;
|
||||
import org.apache.thrift.transport.TTransportException;
|
||||
import org.baeldung.spring.data.cassandra.config.CassandraConfig;
|
||||
import org.baeldung.spring.data.cassandra.model.Book;
|
||||
import com.baeldung.spring.data.cassandra.config.CassandraConfig;
|
||||
import com.baeldung.spring.data.cassandra.model.Book;
|
||||
import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
Loading…
Reference in New Issue