Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
rename repo to spring-data-documentdb (#8)
Browse files Browse the repository at this point in the history
* rename repo to spring-data-documentdb

* remove local integration test
  • Loading branch information
yungezz authored Sep 20, 2017
1 parent ba39aa5 commit e29354a
Show file tree
Hide file tree
Showing 54 changed files with 131 additions and 133 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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>
```

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion config/findbugs-exclude.xml
Original file line number Diff line number Diff line change
@@ -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"/>
Expand Down
15 changes: 8 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down
16 changes: 8 additions & 8 deletions samplecode/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
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;

Expand Down
4 changes: 2 additions & 2 deletions samplecode/src/main/java/com/microsoft/azure/sample/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit e29354a

Please sign in to comment.