Merge pull request #4392 from eugenp/fix-data-mongo

fix package name
This commit is contained in:
Loredana Crusoveanu 2018-06-03 09:56:40 +03:00 committed by GitHub
commit 5836bfa794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 57 additions and 57 deletions

View File

@ -1,4 +1,4 @@
package org.baeldung.annotation; package com.baeldung.annotation;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;

View File

@ -1,10 +1,10 @@
package org.baeldung.config; package com.baeldung.config;
import com.mongodb.Mongo; import com.mongodb.Mongo;
import com.mongodb.MongoClient; import com.mongodb.MongoClient;
import org.baeldung.converter.UserWriterConverter; import com.baeldung.converter.UserWriterConverter;
import org.baeldung.event.CascadeSaveMongoEventListener; import com.baeldung.event.CascadeSaveMongoEventListener;
import org.baeldung.event.UserCascadeSaveMongoEventListener; import com.baeldung.event.UserCascadeSaveMongoEventListener;
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.core.convert.converter.Converter; import org.springframework.core.convert.converter.Converter;
@ -17,7 +17,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
@Configuration @Configuration
@EnableMongoRepositories(basePackages = "org.baeldung.repository") @EnableMongoRepositories(basePackages = "com.baeldung.repository")
public class MongoConfig extends AbstractMongoConfiguration { public class MongoConfig extends AbstractMongoConfiguration {
private final List<Converter<?, ?>> converters = new ArrayList<Converter<?, ?>>(); private final List<Converter<?, ?>> converters = new ArrayList<Converter<?, ?>>();
@ -34,7 +34,7 @@ public class MongoConfig extends AbstractMongoConfiguration {
@Override @Override
public String getMappingBasePackage() { public String getMappingBasePackage() {
return "org.baeldung"; return "com.baeldung";
} }
@Bean @Bean

View File

@ -1,4 +1,4 @@
package org.baeldung.config; package com.baeldung.config;
import com.mongodb.Mongo; import com.mongodb.Mongo;
import com.mongodb.MongoClient; import com.mongodb.MongoClient;
@ -8,7 +8,7 @@ import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories; import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
@Configuration @Configuration
@EnableMongoRepositories(basePackages = "org.baeldung.repository") @EnableMongoRepositories(basePackages = "com.baeldung.repository")
public class SimpleMongoConfig { public class SimpleMongoConfig {
@Bean @Bean

View File

@ -1,8 +1,8 @@
package org.baeldung.converter; package com.baeldung.converter;
import com.mongodb.BasicDBObject; import com.mongodb.BasicDBObject;
import com.mongodb.DBObject; import com.mongodb.DBObject;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.springframework.core.convert.converter.Converter; import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;

View File

@ -1,8 +1,8 @@
package org.baeldung.event; package com.baeldung.event;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import org.baeldung.annotation.CascadeSave; import com.baeldung.annotation.CascadeSave;
import org.springframework.data.mongodb.core.MongoOperations; import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.core.mapping.DBRef; import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.util.ReflectionUtils; import org.springframework.util.ReflectionUtils;

View File

@ -1,4 +1,4 @@
package org.baeldung.event; package com.baeldung.event;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations; import org.springframework.data.mongodb.core.MongoOperations;

View File

@ -1,4 +1,4 @@
package org.baeldung.event; package com.baeldung.event;
import java.lang.reflect.Field; import java.lang.reflect.Field;

View File

@ -1,6 +1,6 @@
package org.baeldung.event; package com.baeldung.event;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations; import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListener; import org.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListener;

View File

@ -1,4 +1,4 @@
package org.baeldung.model; package com.baeldung.model;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Document;

View File

@ -1,6 +1,6 @@
package org.baeldung.model; package com.baeldung.model;
import org.baeldung.annotation.CascadeSave; import com.baeldung.annotation.CascadeSave;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.PersistenceConstructor; import org.springframework.data.annotation.PersistenceConstructor;

View File

@ -1,6 +1,6 @@
package org.baeldung.repository; package com.baeldung.repository;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query; import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.querydsl.QueryDslPredicateExecutor; import org.springframework.data.querydsl.QueryDslPredicateExecutor;

View File

@ -1,12 +1,12 @@
package org.baeldung.aggregation; package com.baeldung.aggregation;
import com.mongodb.DB; import com.mongodb.DB;
import com.mongodb.DBCollection; import com.mongodb.DBCollection;
import com.mongodb.DBObject; import com.mongodb.DBObject;
import com.mongodb.MongoClient; import com.mongodb.MongoClient;
import com.mongodb.util.JSON; import com.mongodb.util.JSON;
import org.baeldung.aggregation.model.StatePopulation; import com.baeldung.aggregation.model.StatePopulation;
import org.baeldung.config.MongoConfig; import com.baeldung.config.MongoConfig;
import org.junit.AfterClass; import org.junit.AfterClass;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package org.baeldung.aggregation.model; package com.baeldung.aggregation.model;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;

View File

@ -1,4 +1,4 @@
package org.baeldung.gridfs; package com.baeldung.gridfs;
import com.mongodb.BasicDBObject; import com.mongodb.BasicDBObject;
import com.mongodb.DBObject; import com.mongodb.DBObject;

View File

@ -1,8 +1,8 @@
package org.baeldung.mongotemplate; package com.baeldung.mongotemplate;
import org.baeldung.config.MongoConfig; import com.baeldung.config.MongoConfig;
import org.baeldung.model.EmailAddress; import com.baeldung.model.EmailAddress;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;

View File

@ -1,7 +1,7 @@
package org.baeldung.mongotemplate; package com.baeldung.mongotemplate;
import org.baeldung.config.SimpleMongoConfig; import com.baeldung.config.SimpleMongoConfig;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;

View File

@ -1,8 +1,8 @@
package org.baeldung.mongotemplate; package com.baeldung.mongotemplate;
import org.baeldung.config.MongoConfig; import com.baeldung.config.MongoConfig;
import org.baeldung.model.EmailAddress; import com.baeldung.model.EmailAddress;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;

View File

@ -1,7 +1,7 @@
package org.baeldung.repository; package com.baeldung.repository;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.baeldung.repository.UserRepository; import com.baeldung.repository.UserRepository;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,13 +1,13 @@
package org.baeldung.repository; package com.baeldung.repository;
import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import java.util.List; import java.util.List;
import org.baeldung.config.MongoConfig; import com.baeldung.config.MongoConfig;
import org.baeldung.model.QUser; import com.baeldung.model.QUser;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;

View File

@ -1,12 +1,12 @@
package org.baeldung.repository; package com.baeldung.repository;
import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import java.util.List; import java.util.List;
import org.baeldung.config.MongoConfig; import com.baeldung.config.MongoConfig;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;

View File

@ -1,12 +1,12 @@
package org.baeldung.repository; package com.baeldung.repository;
import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import java.util.List; import java.util.List;
import org.baeldung.config.MongoConfig; import com.baeldung.config.MongoConfig;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;

View File

@ -1,12 +1,12 @@
package org.baeldung.repository; package com.baeldung.repository;
import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import java.util.List; import java.util.List;
import org.baeldung.config.MongoConfig; import com.baeldung.config.MongoConfig;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;

View File

@ -1,9 +1,9 @@
package org.baeldung.repository; package com.baeldung.repository;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import org.baeldung.config.MongoConfig; import com.baeldung.config.MongoConfig;
import org.baeldung.model.User; import com.baeldung.model.User;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;