rename repo to spring-data-documentdb (#8)

* rename repo to spring-data-documentdb

* remove local integration test
This commit is contained in:
yungez 2017-09-20 14:14:12 +08:00 коммит произвёл GitHub
Родитель ba39aa5907
Коммит e29354a1d0
54 изменённых файлов: 131 добавлений и 133 удалений

Просмотреть файл

@ -1,7 +1,7 @@
[![Travis CI](https://travis-ci.org/Microsoft/spring-data-azure-cosmosdb-documentdb.svg?branch=master)](https://travis-ci.org/Microsoft/spring-data-azure-cosmosdb-documentdb)
[![AppVeyor](https://ci.appveyor.com/api/projects/status/b6n5vsbqbd69g8c1/branch/master?svg=true)](https://ci.appveyor.com/project/yungez/spring-data-azure-cosmosdb-documentdb)
[![codecov](https://codecov.io/gh/Microsoft/spring-data-azure-cosmosdb-documentdb/branch/master/graph/badge.svg)](https://codecov.io/gh/Microsoft/spring-data-azure-cosmosdb-documentdb)
[![MIT License](http://img.shields.io/badge/license-MIT-green.svg) ](https://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb/blob/master/LICENSE)
[![Travis CI](https://travis-ci.org/Microsoft/spring-data-documentdb.svg?branch=master)](https://travis-ci.org/Microsoft/spring-data-documentdb)
[![AppVeyor](https://ci.appveyor.com/api/projects/status/ms9i54axmxa7jg9d/branch/master?svg=true)](https://ci.appveyor.com/project/yungez/spring-data-documentdb)
[![codecov](https://codecov.io/gh/Microsoft/spring-data-documentdb/branch/master/graph/badge.svg)](https://codecov.io/gh/Microsoft/spring-data-documentdb)
[![MIT License](http://img.shields.io/badge/license-MIT-green.svg) ](https://github.com/Microsoft/spring-data-documentdb/blob/master/LICENSE)
## Spring Data for Azure Cosmos DB DocumentDB API
@ -29,14 +29,14 @@ Please refer to [sample project here](./samplecode).
## Quick Start
### Add the dependency
`spring-data-azure-cosmosdb-documentdb` is published on Maven Central Repository.
`spring-data-documentdb` is published on Maven Central Repository.
If you are using Maven, add the following dependency.
```xml
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>spring-data-azure-cosmosdb-documentdb</artifactId>
<version>0.1.2-SNAPSHOT</version>
<artifactId>spring-data-documentdb</artifactId>
<version>0.1.2</version>
</dependency>
```
@ -120,7 +120,7 @@ public class User {
Extends DocumentDbRepository interface, which provides Spring Data repository support.
```
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.DocumentDbRepository;
import DocumentDbRepository;
import org.springframework.stereotype.Repository;
@Repository
@ -162,13 +162,13 @@ Autowired UserRepository interface, then can do save, delete and find operations
## Filing Issues
If you encounter any bug, please file an issue [here](https://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb/issues/new).
If you encounter any bug, please file an issue [here](https://github.com/Microsoft/spring-data-documentdb/issues/new).
To suggest a new feature or changes that could be made, file an issue the same way you would for a bug.
## Pull Requests
Pull requests are welcome. To open your own pull request, click [here](https://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb/compare). When creating a pull request, make sure you are pointing to the fork and branch that your changes were made in.
Pull requests are welcome. To open your own pull request, click [here](https://github.com/Microsoft/spring-data-documentdb/compare). When creating a pull request, make sure you are pointing to the fork and branch that your changes were made in.
## Code of Conduct

Просмотреть файл

@ -28,7 +28,7 @@ install:
- cmd: cd "C:\Program Files\Java\jdk1.8.0\jre\lib\security"
- cmd: certutil -encode c:\documentdb.cer documentdbemulatordb.cer
- cmd: keytool -keystore cacerts -importcert -alias documentdbemulatorcert -file .\documentdbemulatordb.cer -storepass changeit -trustcacerts -noprompt
- cmd: cd "C:\projects\spring-data-azure-cosmosdb-documentdb"
- cmd: cd "C:\projects\spring-data-documentdb"
build_script:

Просмотреть файл

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<Class name="com.microsoft.azure.spring.data.cosmosdb.documentdb.common.GetHashMac"/>
<Class name="com.microsoft.azure.spring.data.documentdb.common.GetHashMac"/>
<Bug pattern="NP_NONNULL_PARAM_VIOLATION"/>
<Bug pattern="Unwritten field"/>
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>

15
pom.xml
Просмотреть файл

@ -5,17 +5,17 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure</groupId>
<artifactId>spring-data-azure-cosmosdb-documentdb</artifactId>
<version>0.1.2-SNAPSHOT</version>
<artifactId>spring-data-documentdb</artifactId>
<version>0.1.2</version>
<name>Spring Data for Azure Cosmos DB DocumentDB API</name>
<description>Spring Data for Azure Cosmos DB DocumentDB API</description>
<url>https://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb</url>
<url>https://github.com/Microsoft/spring-data-documentdb</url>
<licenses>
<license>
<name>MIT</name>
<url>https://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb/blob/master/LICENSE</url>
<url>https://github.com/Microsoft/spring-data-documentdb/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
@ -34,9 +34,10 @@
</organization>
<scm>
<connection>scm:git:git://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb.git</connection>
<developerConnection>scm:git:ssh://github.com:Microsoft/spring-data-azure-cosmosdb-documentdb.git</developerConnection>
<url>https://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb/tree/master</url>
<connection>scm:git:git://github.com/Microsoft/spring-data-documentdb.git</connection>
<developerConnection>scm:git:ssh://github.com:Microsoft/spring-data-documentdb.git
</developerConnection>
<url>https://github.com/Microsoft/spring-data-documentdb/tree/master</url>
</scm>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>

Просмотреть файл

@ -18,12 +18,12 @@
<name>Spring Data Azure Cosmos DB DocumentDB Sample</name>
<description>Sample project for Spring Data Azure Cosmos DB DocumentDB</description>
<url>https://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb</url>
<url>https://github.com/Microsoft/spring-data-documentdb</url>
<licenses>
<license>
<name>MIT</name>
<url>https://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb/blob/master/LICENSE</url>
<url>https://github.com/Microsoft/spring-data-documentdb/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
@ -37,15 +37,15 @@
</developers>
<scm>
<connection>scm:git:git://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb.git</connection>
<developerConnection>scm:git:ssh://github.com:Microsoft/spring-data-azure-cosmosdb-documentdb.git
<connection>scm:git:git://github.com/Microsoft/spring-data-documentdb.git</connection>
<developerConnection>scm:git:ssh://github.com:Microsoft/spring-data-documentdb.git
</developerConnection>
<url>https://github.com/Microsoft/spring-data-azure-cosmosdb-documentdb/tree/master</url>
<url>https://github.com/Microsoft/spring-data-documentdb/tree/master</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.data.azure.cosmosdb.documentdb.version>0.1.2-SNAPSHOT</spring.data.azure.cosmosdb.documentdb.version>
<spring.data.documentdb.version>0.1.2</spring.data.documentdb.version>
</properties>
<dependencies>
@ -55,8 +55,8 @@
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>spring-data-azure-cosmosdb-documentdb</artifactId>
<version>${spring.data.azure.cosmosdb.documentdb.version}</version>
<artifactId>spring-data-documentdb</artifactId>
<version>${spring.data.documentdb.version}</version>
</dependency>
</dependencies>

Просмотреть файл

@ -9,8 +9,8 @@ package com.microsoft.azure.sample;
import com.microsoft.azure.documentdb.ConnectionPolicy;
import com.microsoft.azure.documentdb.ConsistencyLevel;
import com.microsoft.azure.documentdb.DocumentClient;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.config.AbstractDocumentDbConfiguration;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.config.EnableDocumentDbRepositories;
import com.microsoft.azure.spring.data.documentdb.config.AbstractDocumentDbConfiguration;
import com.microsoft.azure.spring.data.documentdb.repository.config.EnableDocumentDbRepositories;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

Просмотреть файл

@ -6,8 +6,8 @@
package com.microsoft.azure.sample;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.Document;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.PartitionKey;
import com.microsoft.azure.spring.data.documentdb.core.mapping.Document;
import com.microsoft.azure.spring.data.documentdb.core.mapping.PartitionKey;
import org.springframework.data.annotation.Id;
@Document(collection = "mycollection")

Просмотреть файл

@ -6,7 +6,7 @@
package com.microsoft.azure.sample;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.DocumentDbRepository;
import com.microsoft.azure.spring.data.documentdb.repository.DocumentDbRepository;
import org.springframework.stereotype.Repository;
@Repository

Просмотреть файл

@ -4,12 +4,12 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb;
package com.microsoft.azure.spring.data.documentdb;
import com.microsoft.azure.documentdb.ConnectionPolicy;
import com.microsoft.azure.documentdb.ConsistencyLevel;
import com.microsoft.azure.documentdb.DocumentClient;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.common.GetHashMac;
import com.microsoft.azure.spring.data.documentdb.common.GetHashMac;
import org.springframework.util.Assert;
public class DocumentDbFactory {

Просмотреть файл

@ -10,13 +10,9 @@
* Location in the repo: /Utils/azuretools-core/src/com/microsoft/azuretools/azurecommons/util/GetHashMac.java
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.common;
package com.microsoft.azure.spring.data.documentdb.common;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.io.*;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.regex.Matcher;

Просмотреть файл

@ -4,12 +4,12 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.config;
package com.microsoft.azure.spring.data.documentdb.config;
import com.microsoft.azure.documentdb.DocumentClient;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.DocumentDbFactory;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.DocumentDbTemplate;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.convert.MappingDocumentDbConverter;
import com.microsoft.azure.spring.data.documentdb.DocumentDbFactory;
import com.microsoft.azure.spring.data.documentdb.core.DocumentDbTemplate;
import com.microsoft.azure.spring.data.documentdb.core.convert.MappingDocumentDbConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

Просмотреть файл

@ -4,9 +4,9 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.config;
package com.microsoft.azure.spring.data.documentdb.config;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.DocumentDbMappingContext;
import com.microsoft.azure.spring.data.documentdb.core.mapping.DocumentDbMappingContext;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core;
package com.microsoft.azure.spring.data.documentdb.core;
import com.microsoft.azure.documentdb.DocumentCollection;

Просмотреть файл

@ -4,14 +4,14 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core;
package com.microsoft.azure.spring.data.documentdb.core;
import com.microsoft.azure.documentdb.*;
import com.microsoft.azure.documentdb.internal.HttpConstants;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.DocumentDbFactory;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.convert.MappingDocumentDbConverter;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.DocumentDbPersistentEntity;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.DocumentDbPersistentProperty;
import com.microsoft.azure.spring.data.documentdb.DocumentDbFactory;
import com.microsoft.azure.spring.data.documentdb.core.convert.MappingDocumentDbConverter;
import com.microsoft.azure.spring.data.documentdb.core.mapping.DocumentDbPersistentEntity;
import com.microsoft.azure.spring.data.documentdb.core.mapping.DocumentDbPersistentProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.convert;
package com.microsoft.azure.spring.data.documentdb.core.convert;
import com.google.gson.Gson;
import com.microsoft.azure.documentdb.Document;

Просмотреть файл

@ -3,11 +3,11 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.convert;
package com.microsoft.azure.spring.data.documentdb.core.convert;
import com.microsoft.azure.documentdb.Document;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.DocumentDbPersistentEntity;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.DocumentDbPersistentProperty;
import com.microsoft.azure.spring.data.documentdb.core.mapping.DocumentDbPersistentEntity;
import com.microsoft.azure.spring.data.documentdb.core.mapping.DocumentDbPersistentProperty;
import org.apache.commons.lang3.ClassUtils;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping;
package com.microsoft.azure.spring.data.documentdb.core.mapping;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping;
package com.microsoft.azure.spring.data.documentdb.core.mapping;
import org.springframework.data.mapping.Association;
import org.springframework.data.mapping.model.AnnotationBasedPersistentProperty;

Просмотреть файл

@ -3,7 +3,7 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping;
package com.microsoft.azure.spring.data.documentdb.core.mapping;
import org.springframework.data.annotation.Persistent;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping;
package com.microsoft.azure.spring.data.documentdb.core.mapping;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping;
package com.microsoft.azure.spring.data.documentdb.core.mapping;
import org.springframework.data.mapping.PersistentEntity;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping;
package com.microsoft.azure.spring.data.documentdb.core.mapping;
import org.springframework.data.mapping.PersistentProperty;

Просмотреть файл

@ -3,7 +3,7 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping;
package com.microsoft.azure.spring.data.documentdb.core.mapping;
import java.lang.annotation.*;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository;
package com.microsoft.azure.spring.data.documentdb.repository;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.repository.PagingAndSortingRepository;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.config;
package com.microsoft.azure.spring.data.documentdb.repository.config;
import org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport;
import org.springframework.data.repository.config.RepositoryConfigurationExtension;

Просмотреть файл

@ -4,11 +4,11 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.config;
package com.microsoft.azure.spring.data.documentdb.repository.config;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.DocumentDbMappingContext;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.DocumentDbRepository;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support.DocumentDbRepositoryFactoryBean;
import com.microsoft.azure.spring.data.documentdb.core.mapping.DocumentDbMappingContext;
import com.microsoft.azure.spring.data.documentdb.repository.DocumentDbRepository;
import com.microsoft.azure.spring.data.documentdb.repository.support.DocumentDbRepositoryFactoryBean;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.RootBeanDefinition;

Просмотреть файл

@ -4,9 +4,9 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.config;
package com.microsoft.azure.spring.data.documentdb.repository.config;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support.DocumentDbRepositoryFactoryBean;
import com.microsoft.azure.spring.data.documentdb.repository.support.DocumentDbRepositoryFactoryBean;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Import;
import org.springframework.data.repository.config.DefaultRepositoryBaseClass;

Просмотреть файл

@ -4,10 +4,10 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support;
package com.microsoft.azure.spring.data.documentdb.repository.support;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.Document;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.PartitionKey;
import com.microsoft.azure.spring.data.documentdb.core.mapping.Document;
import com.microsoft.azure.spring.data.documentdb.core.mapping.PartitionKey;
import org.apache.commons.lang3.reflect.FieldUtils;
import org.springframework.data.annotation.Id;
import org.springframework.data.repository.core.support.AbstractEntityInformation;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support;
package com.microsoft.azure.spring.data.documentdb.repository.support;
import org.springframework.context.ApplicationContext;
import org.springframework.data.repository.core.EntityInformation;

Просмотреть файл

@ -4,9 +4,9 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support;
package com.microsoft.azure.spring.data.documentdb.repository.support;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.DocumentDbOperations;
import com.microsoft.azure.spring.data.documentdb.core.DocumentDbOperations;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

Просмотреть файл

@ -4,11 +4,11 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support;
package com.microsoft.azure.spring.data.documentdb.repository.support;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.DocumentDbOperations;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.DocumentDbRepository;
import com.microsoft.azure.spring.data.documentdb.core.DocumentDbOperations;
import com.microsoft.azure.spring.data.documentdb.repository.DocumentDbRepository;
import org.springframework.context.ApplicationContext;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

Просмотреть файл

@ -1 +1 @@
org.springframework.data.repository.core.support.RepositoryFactorySupport=com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support.DocumentDbRepositoryFactory
org.springframework.data.repository.core.support.RepositoryFactorySupport=com.microsoft.azure.spring.data.documentdb.repository.support.DocumentDbRepositoryFactory

Просмотреть файл

@ -3,7 +3,7 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb;
package com.microsoft.azure.spring.data.documentdb;
import org.junit.Test;
import org.junit.runner.RunWith;

Просмотреть файл

@ -4,10 +4,11 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.config;
package com.microsoft.azure.spring.data.documentdb.config;
import com.microsoft.azure.documentdb.DocumentClient;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.DocumentDbFactory;
import com.microsoft.azure.spring.data.documentdb.DocumentDbFactory;
import org.assertj.core.api.Assertions;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
@ -29,7 +30,7 @@ public class AbstractDocumentDbConfiguratinUnitTest {
final AbstractApplicationContext context = new AnnotationConfigApplicationContext(
TestDocumentDbConfiguration.class);
assertThat(context.getBean(DocumentDbFactory.class)).isNotNull();
Assertions.assertThat(context.getBean(DocumentDbFactory.class)).isNotNull();
}
@Configuration

Просмотреть файл

@ -4,14 +4,14 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core;
package com.microsoft.azure.spring.data.documentdb.core;
import com.microsoft.azure.documentdb.ConnectionPolicy;
import com.microsoft.azure.documentdb.ConsistencyLevel;
import com.microsoft.azure.documentdb.DocumentClient;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.convert.MappingDocumentDbConverter;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.DocumentDbMappingContext;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.domain.Person;
import com.microsoft.azure.spring.data.documentdb.core.convert.MappingDocumentDbConverter;
import com.microsoft.azure.spring.data.documentdb.core.mapping.DocumentDbMappingContext;
import com.microsoft.azure.spring.data.documentdb.domain.Person;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

Просмотреть файл

@ -4,11 +4,11 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core;
package com.microsoft.azure.spring.data.documentdb.core;
import com.microsoft.azure.documentdb.DocumentClient;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.DocumentDbFactory;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.convert.MappingDocumentDbConverter;
import com.microsoft.azure.spring.data.documentdb.DocumentDbFactory;
import com.microsoft.azure.spring.data.documentdb.core.convert.MappingDocumentDbConverter;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

Просмотреть файл

@ -4,12 +4,12 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.converter;
package com.microsoft.azure.spring.data.documentdb.core.converter;
import com.microsoft.azure.documentdb.Document;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.convert.DocumentDbConverter;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.domain.Person;
import com.microsoft.azure.spring.data.documentdb.core.convert.DocumentDbConverter;
import com.microsoft.azure.spring.data.documentdb.domain.Person;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Test;

Просмотреть файл

@ -3,12 +3,12 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.converter;
package com.microsoft.azure.spring.data.documentdb.core.converter;
import com.microsoft.azure.documentdb.Document;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.convert.MappingDocumentDbConverter;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.DocumentDbMappingContext;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.domain.Address;
import com.microsoft.azure.spring.data.documentdb.core.convert.MappingDocumentDbConverter;
import com.microsoft.azure.spring.data.documentdb.core.mapping.DocumentDbMappingContext;
import com.microsoft.azure.spring.data.documentdb.domain.Address;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

Просмотреть файл

@ -4,9 +4,9 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping;
package com.microsoft.azure.spring.data.documentdb.core.mapping;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.domain.Person;
import com.microsoft.azure.spring.data.documentdb.domain.Person;
import org.junit.Test;
import org.springframework.data.util.ClassTypeInformation;

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping;
package com.microsoft.azure.spring.data.documentdb.core.mapping;
import org.junit.Test;
import org.junit.runner.RunWith;

Просмотреть файл

@ -3,10 +3,10 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.domain;
package com.microsoft.azure.spring.data.documentdb.domain;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.Document;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.PartitionKey;
import com.microsoft.azure.spring.data.documentdb.core.mapping.Document;
import com.microsoft.azure.spring.data.documentdb.core.mapping.PartitionKey;
import org.springframework.data.annotation.Id;
@Document(ru = "1000")

Просмотреть файл

@ -4,7 +4,7 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.domain;
package com.microsoft.azure.spring.data.documentdb.domain;
public class Person {

Просмотреть файл

@ -4,9 +4,9 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.domain;
package com.microsoft.azure.spring.data.documentdb.domain;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.DocumentDbRepository;
import com.microsoft.azure.spring.data.documentdb.repository.DocumentDbRepository;
import org.springframework.stereotype.Repository;
@Repository

Просмотреть файл

@ -3,9 +3,9 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository;
package com.microsoft.azure.spring.data.documentdb.repository;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.domain.Address;
import com.microsoft.azure.spring.data.documentdb.domain.Address;
import org.springframework.stereotype.Repository;
@Repository

Просмотреть файл

@ -3,9 +3,9 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository;
package com.microsoft.azure.spring.data.documentdb.repository;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.domain.Address;
import com.microsoft.azure.spring.data.documentdb.domain.Address;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

Просмотреть файл

@ -3,7 +3,7 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository;
package com.microsoft.azure.spring.data.documentdb.repository;
import org.springframework.data.annotation.Id;

Просмотреть файл

@ -3,7 +3,7 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository;
package com.microsoft.azure.spring.data.documentdb.repository;
import org.springframework.stereotype.Repository;

Просмотреть файл

@ -3,13 +3,13 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository;
package com.microsoft.azure.spring.data.documentdb.repository;
import com.microsoft.azure.documentdb.ConnectionPolicy;
import com.microsoft.azure.documentdb.ConsistencyLevel;
import com.microsoft.azure.documentdb.DocumentClient;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.config.AbstractDocumentDbConfiguration;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.config.EnableDocumentDbRepositories;
import com.microsoft.azure.spring.data.documentdb.config.AbstractDocumentDbConfiguration;
import com.microsoft.azure.spring.data.documentdb.repository.config.EnableDocumentDbRepositories;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

Просмотреть файл

@ -3,7 +3,7 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository;
package com.microsoft.azure.spring.data.documentdb.repository;
import org.assertj.core.util.Lists;
import org.junit.After;

Просмотреть файл

@ -4,12 +4,12 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository;
package com.microsoft.azure.spring.data.documentdb.repository;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.DocumentDbOperations;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.domain.Person;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support.DocumentDbEntityInformation;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support.SimpleDocumentDbRepository;
import com.microsoft.azure.spring.data.documentdb.core.DocumentDbOperations;
import com.microsoft.azure.spring.data.documentdb.domain.Person;
import com.microsoft.azure.spring.data.documentdb.repository.support.DocumentDbEntityInformation;
import com.microsoft.azure.spring.data.documentdb.repository.support.SimpleDocumentDbRepository;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

Просмотреть файл

@ -4,9 +4,9 @@
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.config;
package com.microsoft.azure.spring.data.documentdb.repository.config;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.DocumentDbRepository;
import com.microsoft.azure.spring.data.documentdb.repository.DocumentDbRepository;
import org.junit.Test;
import org.springframework.core.env.Environment;
import org.springframework.core.env.StandardEnvironment;

Просмотреть файл

@ -3,10 +3,10 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support;
package com.microsoft.azure.spring.data.documentdb.repository.support;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.Document;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.domain.Person;
import com.microsoft.azure.spring.data.documentdb.core.mapping.Document;
import com.microsoft.azure.spring.data.documentdb.domain.Person;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;

Просмотреть файл

@ -3,9 +3,9 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support;
package com.microsoft.azure.spring.data.documentdb.repository.support;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.domain.PersonRepository;
import com.microsoft.azure.spring.data.documentdb.domain.PersonRepository;
import org.junit.Test;
import org.springframework.data.repository.core.support.RepositoryFactorySupport;

Просмотреть файл

@ -3,10 +3,10 @@
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.data.cosmosdb.documentdb.repository.support;
package com.microsoft.azure.spring.data.documentdb.repository.support;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.core.mapping.DocumentDbPersistentEntity;
import com.microsoft.azure.spring.data.cosmosdb.documentdb.domain.Person;
import com.microsoft.azure.spring.data.documentdb.core.mapping.DocumentDbPersistentEntity;
import com.microsoft.azure.spring.data.documentdb.domain.Person;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;