Merge pull request #8432 from kwoyke/BAEL-20537
BAEL-20537: Standardize packages for some smaller modules
This commit is contained in:
commit
b63a8c2335
|
@ -16,7 +16,7 @@
|
||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>contextConfigLocation</param-name>
|
<param-name>contextConfigLocation</param-name>
|
||||||
<param-value>org.baeldung.config</param-value>
|
<param-value>com.baeldung.config</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.java;
|
package com.baeldung.java;
|
||||||
|
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.BufferedOutputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.java;
|
package com.baeldung.java;
|
||||||
|
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.BufferedOutputStream;
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
|
@ -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.olingo2</groupId>
|
<groupId>com.baeldung.examples.olingo2</groupId>
|
||||||
<artifactId>olingo2</artifactId>
|
<artifactId>olingo2</artifactId>
|
||||||
<name>olingo2</name>
|
<name>olingo2</name>
|
||||||
<description>Sample Olingo 2 Project</description>
|
<description>Sample Olingo 2 Project</description>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.examples.olingo2;
|
package com.baeldung.examples.olingo2;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -9,10 +9,8 @@ import javax.persistence.EntityManagerFactory;
|
||||||
import javax.persistence.EntityTransaction;
|
import javax.persistence.EntityTransaction;
|
||||||
import javax.persistence.FlushModeType;
|
import javax.persistence.FlushModeType;
|
||||||
import javax.persistence.LockModeType;
|
import javax.persistence.LockModeType;
|
||||||
import javax.persistence.Persistence;
|
|
||||||
import javax.persistence.Query;
|
import javax.persistence.Query;
|
||||||
import javax.persistence.StoredProcedureQuery;
|
import javax.persistence.StoredProcedureQuery;
|
||||||
import javax.persistence.SynchronizationType;
|
|
||||||
import javax.persistence.TypedQuery;
|
import javax.persistence.TypedQuery;
|
||||||
import javax.persistence.criteria.CriteriaBuilder;
|
import javax.persistence.criteria.CriteriaBuilder;
|
||||||
import javax.persistence.criteria.CriteriaDelete;
|
import javax.persistence.criteria.CriteriaDelete;
|
||||||
|
@ -25,11 +23,8 @@ import org.apache.olingo.odata2.api.processor.ODataContext;
|
||||||
import org.apache.olingo.odata2.jpa.processor.api.ODataJPAContext;
|
import org.apache.olingo.odata2.jpa.processor.api.ODataJPAContext;
|
||||||
import org.apache.olingo.odata2.jpa.processor.api.ODataJPAServiceFactory;
|
import org.apache.olingo.odata2.jpa.processor.api.ODataJPAServiceFactory;
|
||||||
import org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPARuntimeException;
|
import org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPARuntimeException;
|
||||||
import org.baeldung.examples.olingo2.JerseyConfig.EntityManagerFilter;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.orm.jpa.EntityManagerFactoryUtils;
|
|
||||||
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -58,7 +53,7 @@ public class CarsODataJPAServiceFactory extends ODataJPAServiceFactory {
|
||||||
ODataJPAContext ctx = getODataJPAContext();
|
ODataJPAContext ctx = getODataJPAContext();
|
||||||
ODataContext octx = ctx.getODataContext();
|
ODataContext octx = ctx.getODataContext();
|
||||||
HttpServletRequest request = (HttpServletRequest)octx.getParameter(ODataContext.HTTP_SERVLET_REQUEST_OBJECT);
|
HttpServletRequest request = (HttpServletRequest)octx.getParameter(ODataContext.HTTP_SERVLET_REQUEST_OBJECT);
|
||||||
EntityManager em = (EntityManager)request.getAttribute(EntityManagerFilter.EM_REQUEST_ATTRIBUTE);
|
EntityManager em = (EntityManager)request.getAttribute(JerseyConfig.EntityManagerFilter.EM_REQUEST_ATTRIBUTE);
|
||||||
|
|
||||||
// Here we're passing the EM that was created by the EntityManagerFilter (see JerseyConfig)
|
// Here we're passing the EM that was created by the EntityManagerFilter (see JerseyConfig)
|
||||||
ctx.setEntityManager(new EntityManagerWrapper(em));
|
ctx.setEntityManager(new EntityManagerWrapper(em));
|
|
@ -1,11 +1,10 @@
|
||||||
package org.baeldung.examples.olingo2;
|
package com.baeldung.examples.olingo2;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
import javax.persistence.EntityManagerFactory;
|
import javax.persistence.EntityManagerFactory;
|
||||||
import javax.persistence.EntityTransaction;
|
import javax.persistence.EntityTransaction;
|
||||||
import javax.servlet.ServletContext;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.ws.rs.ApplicationPath;
|
import javax.ws.rs.ApplicationPath;
|
||||||
import javax.ws.rs.Path;
|
import javax.ws.rs.Path;
|
|
@ -1,8 +1,7 @@
|
||||||
package org.baeldung.examples.olingo2;
|
package com.baeldung.examples.olingo2;
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
|
||||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.examples.olingo2.domain;
|
package com.baeldung.examples.olingo2.domain;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.examples.olingo2.domain;
|
package com.baeldung.examples.olingo2.domain;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.examples.olingo2;
|
package com.baeldung.examples.olingo2;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
|
@ -2,7 +2,7 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" 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.pmd</groupId>
|
<groupId>com.baeldung.pmd</groupId>
|
||||||
<artifactId>custom-pmd</artifactId>
|
<artifactId>custom-pmd</artifactId>
|
||||||
<version>0.0.1</version>
|
<version>0.0.1</version>
|
||||||
<name>custom-pmd</name>
|
<name>custom-pmd</name>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.pmd;
|
package com.baeldung.pmd;
|
||||||
|
|
||||||
import net.sourceforge.pmd.lang.java.ast.ASTClassOrInterfaceDeclaration;
|
import net.sourceforge.pmd.lang.java.ast.ASTClassOrInterfaceDeclaration;
|
||||||
import net.sourceforge.pmd.lang.java.rule.AbstractJavaRule;
|
import net.sourceforge.pmd.lang.java.rule.AbstractJavaRule;
|
|
@ -1,8 +1,8 @@
|
||||||
package org.baeldung.grpc.client;
|
package com.baeldung.grpc.client;
|
||||||
|
|
||||||
import org.baeldung.grpc.HelloRequest;
|
import com.baeldung.grpc.HelloRequest;
|
||||||
import org.baeldung.grpc.HelloResponse;
|
import com.baeldung.grpc.HelloResponse;
|
||||||
import org.baeldung.grpc.HelloServiceGrpc;
|
import com.baeldung.grpc.HelloServiceGrpc;
|
||||||
|
|
||||||
import io.grpc.ManagedChannel;
|
import io.grpc.ManagedChannel;
|
||||||
import io.grpc.ManagedChannelBuilder;
|
import io.grpc.ManagedChannelBuilder;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.grpc.server;
|
package com.baeldung.grpc.server;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package org.baeldung.grpc.server;
|
package com.baeldung.grpc.server;
|
||||||
|
|
||||||
import org.baeldung.grpc.HelloRequest;
|
import com.baeldung.grpc.HelloRequest;
|
||||||
import org.baeldung.grpc.HelloResponse;
|
import com.baeldung.grpc.HelloResponse;
|
||||||
import org.baeldung.grpc.HelloServiceGrpc.HelloServiceImplBase;
|
import com.baeldung.grpc.HelloServiceGrpc.HelloServiceImplBase;
|
||||||
|
|
||||||
import io.grpc.stub.StreamObserver;
|
import io.grpc.stub.StreamObserver;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
option java_multiple_files = true;
|
option java_multiple_files = true;
|
||||||
package org.baeldung.grpc;
|
package com.baeldung.grpc;
|
||||||
|
|
||||||
message HelloRequest {
|
message HelloRequest {
|
||||||
string firstName = 1;
|
string firstName = 1;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.guava;
|
package com.baeldung.guava;
|
||||||
|
|
||||||
import com.google.common.base.Function;
|
import com.google.common.base.Function;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.guava;
|
package com.baeldung.guava;
|
||||||
|
|
||||||
import com.google.common.base.Function;
|
import com.google.common.base.Function;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.guava;
|
package com.baeldung.guava;
|
||||||
|
|
||||||
import com.google.common.collect.HashMultiset;
|
import com.google.common.collect.HashMultiset;
|
||||||
import com.google.common.collect.Multiset;
|
import com.google.common.collect.Multiset;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.guava;
|
package com.baeldung.guava;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableRangeSet;
|
import com.google.common.collect.ImmutableRangeSet;
|
||||||
import com.google.common.collect.Range;
|
import com.google.common.collect.Range;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.guava;
|
package com.baeldung.guava;
|
||||||
|
|
||||||
import com.google.common.base.Function;
|
import com.google.common.base.Function;
|
||||||
import com.google.common.base.Joiner;
|
import com.google.common.base.Joiner;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.guava;
|
package com.baeldung.guava;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.guava;
|
package com.baeldung.guava;
|
||||||
|
|
||||||
import static org.hamcrest.Matchers.contains;
|
import static org.hamcrest.Matchers.contains;
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.java.io.remote;
|
package com.baeldung.java.io.remote;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
|
@ -19,8 +19,8 @@ public class MyCustomRule implements EnforcerRule {
|
||||||
|
|
||||||
String groupId = (String) enforcerRuleHelper.evaluate("${project.groupId}");
|
String groupId = (String) enforcerRuleHelper.evaluate("${project.groupId}");
|
||||||
|
|
||||||
if (groupId == null || !groupId.startsWith("org.baeldung")) {
|
if (groupId == null || !groupId.startsWith("com.baeldung")) {
|
||||||
throw new EnforcerRuleException("Project group id does not start with org.baeldung");
|
throw new EnforcerRuleException("Project group id does not start with com.baeldung");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.tensorflow;
|
package com.baeldung.tensorflow;
|
||||||
|
|
||||||
import org.tensorflow.DataType;
|
import org.tensorflow.DataType;
|
||||||
import org.tensorflow.Graph;
|
import org.tensorflow.Graph;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.tensorflow;
|
package com.baeldung.tensorflow;
|
||||||
|
|
||||||
import org.tensorflow.SavedModelBundle;
|
import org.tensorflow.SavedModelBundle;
|
||||||
import org.tensorflow.Tensor;
|
import org.tensorflow.Tensor;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.baeldung.tensorflow;
|
package com.baeldung.tensorflow;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
Loading…
Reference in New Issue