1
0
mirror of synced 2026-09-04 15:09:39 +00:00

Compare commits

..

17 Commits

Author SHA1 Message Date
Mark Paluch d30b41cc59 DATAES-392 - Release version 3.0 GA (Kay). 2017-10-02 11:10:23 +02:00
Mark Paluch 3fa7851544 DATAES-392 - Prepare 3.0 GA (Kay). 2017-10-02 11:09:17 +02:00
Mark Paluch e990e57b6e DATAES-392 - Updated changelog. 2017-10-02 11:09:15 +02:00
Mark Paluch a30a13dced DATAES-395 - Downgrade to CDI 1.0. 2017-09-21 14:39:22 +02:00
Mark Paluch e0d85f0c2a DATAES-397 - Added explicit automatic module name for JDK 9. 2017-09-21 14:02:37 +02:00
Mark Paluch 960263837b DATAES-395 - Polishing.
Fix line endings.
2017-09-18 15:36:39 +02:00
Mark Paluch 6dd4d28067 DATAES-395 - Upgrade to OpenWebBeans 2.0.1. 2017-09-18 15:36:20 +02:00
Oliver Gierke adf846d665 DATAES-376 - After release cleanups. 2017-09-11 17:40:22 +02:00
Oliver Gierke 8193212d5b DATAES-376 - Prepare next development iteration. 2017-09-11 17:40:19 +02:00
Oliver Gierke e529c56ced DATAES-376 - Release version 3.0 RC3 (Kay). 2017-09-11 17:24:46 +02:00
Oliver Gierke 7ba5195c6e DATAES-376 - Prepare 3.0 RC3 (Kay). 2017-09-11 17:23:52 +02:00
Oliver Gierke f899cf389f DATAES-376 - Updated changelog. 2017-09-11 17:23:49 +02:00
Mark Paluch 196ab5b5e2 DATAES-378 - Updated changelog. 2017-09-11 12:44:07 +02:00
Oliver Gierke 771e01189e DATAES-374 - Updated changelog. 2017-07-27 00:49:04 +02:00
Mohsin Husen 54d1b2f3dd DATAES-375 - update README 2017-07-26 11:58:24 +01:00
Oliver Gierke 527d594389 DATAES-375 - After release cleanups. 2017-07-25 16:10:39 +02:00
Oliver Gierke 8d0e1df742 DATAES-375 - Prepare next development iteration. 2017-07-25 16:10:36 +02:00
6 changed files with 187 additions and 151 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ the appropriate dependency version.
| spring data elasticsearch | elasticsearch |
|:-----------------------------------:|:-------------:|
| 3.0.0.RC1 | 5.5.0 |
| 3.0.0.RC2 | 5.5.0 |
| 3.0.0.M4 | 5.4.0 |
| 2.0.4.RELEASE | 2.4.0 |
| 2.0.0.RELEASE | 2.2.0 |
+17 -6
View File
@@ -4,12 +4,12 @@
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>3.0.0.RC2</version>
<version>3.0.0.RELEASE</version>
<parent>
<groupId>org.springframework.data.build</groupId>
<artifactId>spring-data-parent</artifactId>
<version>2.0.0.RC2</version>
<version>2.0.0.RELEASE</version>
</parent>
<name>Spring Data Elasticsearch</name>
@@ -20,7 +20,8 @@
<commonscollections>3.2.1</commonscollections>
<commonslang>2.6</commonslang>
<elasticsearch>5.5.0</elasticsearch>
<springdata.commons>2.0.0.RC2</springdata.commons>
<springdata.commons>2.0.0.RELEASE</springdata.commons>
<java-module-name>spring.data.elasticsearch</java-module-name>
</properties>
<dependencies>
@@ -127,10 +128,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.openwebbeans.test</groupId>
<artifactId>cditest-owb</artifactId>
<version>${webbeans}</version>
<version>1.2.8</version>
<scope>test</scope>
<exclusions>
<exclusion>
@@ -143,6 +145,15 @@
</exclusion>
</exclusions>
</dependency>
<!-- Upgrade xbean to 4.5 to prevent incompatibilities due to ASM versions -->
<dependency>
<groupId>org.apache.xbean</groupId>
<artifactId>xbean-asm5-shaded</artifactId>
<version>4.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
@@ -211,8 +222,8 @@
<repositories>
<repository>
<id>spring-libs-milestone</id>
<url>https://repo.spring.io/libs-milestone</url>
<id>spring-libs-release</id>
<url>https://repo.spring.io/libs-release</url>
</repository>
</repositories>
+22
View File
@@ -1,6 +1,28 @@
Spring Data Elasticsearch Changelog
===================================
Changes in version 3.0.0.RELEASE (2017-10-02)
---------------------------------------------
* DATAES-397 - Add explicit automatic module name for Java 9.
* DATAES-395 - Upgrade to OpenWebBeans 2.0.1.
* DATAES-392 - Release 3.0 GA (Kay).
Changes in version 3.0.0.RC3 (2017-09-11)
-----------------------------------------
* DATAES-376 - Release 3.0 RC3 (Kay).
Changes in version 2.1.7.RELEASE (2017-09-11)
---------------------------------------------
* DATAES-378 - Release 2.1.7 (Ingalls SR7).
Changes in version 2.1.6.RELEASE (2017-07-26)
---------------------------------------------
* DATAES-374 - Release 2.1.6 (Ingalls SR6).
Changes in version 3.0.0.RC2 (2017-07-25)
-----------------------------------------
* DATAES-375 - Release 3.0 RC2 (Kay).
+1 -1
View File
@@ -1,4 +1,4 @@
Spring Data Elasticsearch 3.0 RC2
Spring Data Elasticsearch 3.0 GA
Copyright (c) [2013-2016] Pivotal Software, Inc.
This product is licensed to you under the Apache License, Version 2.0 (the "License").
@@ -1,138 +1,141 @@
/*
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.elasticsearch.repositories.cdi;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.util.Optional;
import org.apache.webbeans.cditest.CdiTestContainer;
import org.apache.webbeans.cditest.CdiTestContainerLoader;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.data.elasticsearch.entities.Product;
/**
* @author Mohsin Husen
* @author Mark Paluch
* @author Christoph Strobl
*/
public class CdiRepositoryTests {
private static CdiTestContainer cdiContainer;
private CdiProductRepository repository;
private SamplePersonRepository personRepository;
private QualifiedProductRepository qualifiedProductRepository;
@BeforeClass
public static void init() throws Exception {
cdiContainer = CdiTestContainerLoader.getCdiContainer();
cdiContainer.startApplicationScope();
cdiContainer.bootContainer();
}
@AfterClass
public static void shutdown() throws Exception {
cdiContainer.stopContexts();
cdiContainer.shutdownContainer();
}
@Before
public void setUp() {
CdiRepositoryClient client = cdiContainer.getInstance(CdiRepositoryClient.class);
repository = client.getRepository();
personRepository = client.getSamplePersonRepository();
repository.deleteAll();
qualifiedProductRepository = client.getQualifiedProductRepository();
}
@Test
public void testCdiRepository() {
assertNotNull(repository);
Product bean = new Product();
bean.setId("id-1");
bean.setName("cidContainerTest-1");
repository.save(bean);
assertTrue(repository.existsById(bean.getId()));
Optional<Product> retrieved = repository.findById(bean.getId());
assertTrue(retrieved.isPresent());
retrieved.ifPresent(product -> {
assertEquals(bean.getId(), product.getId());
assertEquals(bean.getName(), product.getName());
});
assertEquals(1, repository.count());
assertTrue(repository.existsById(bean.getId()));
repository.delete(bean);
assertEquals(0, repository.count());
retrieved = repository.findById(bean.getId());
assertFalse(retrieved.isPresent());
}
/**
* @see DATAES-234
*/
@Test
public void testQualifiedCdiRepository() {
assertNotNull(qualifiedProductRepository);
Product bean = new Product();
bean.setId("id-1");
bean.setName("cidContainerTest-1");
qualifiedProductRepository.save(bean);
assertTrue(qualifiedProductRepository.existsById(bean.getId()));
Optional<Product> retrieved = qualifiedProductRepository.findById(bean.getId());
assertTrue(retrieved.isPresent());
retrieved.ifPresent(product -> {
assertEquals(bean.getId(), product.getId());
assertEquals(bean.getName(), product.getName());
});
assertEquals(1, qualifiedProductRepository.count());
assertTrue(qualifiedProductRepository.existsById(bean.getId()));
qualifiedProductRepository.delete(bean);
assertEquals(0, qualifiedProductRepository.count());
retrieved = qualifiedProductRepository.findById(bean.getId());
assertFalse(retrieved.isPresent());
}
/**
* @see DATAES-113
*/
@Test
public void returnOneFromCustomImpl() {
assertThat(personRepository.returnOne(), is(1));
}
}
/*
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.elasticsearch.repositories.cdi;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.util.Optional;
import org.apache.webbeans.cditest.CdiTestContainer;
import org.apache.webbeans.cditest.CdiTestContainerLoader;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.data.elasticsearch.entities.Product;
/**
* @author Mohsin Husen
* @author Mark Paluch
* @author Christoph Strobl
*/
public class CdiRepositoryTests {
private static CdiTestContainer cdiContainer;
private CdiProductRepository repository;
private SamplePersonRepository personRepository;
private QualifiedProductRepository qualifiedProductRepository;
@BeforeClass
public static void init() throws Exception {
cdiContainer = CdiTestContainerLoader.getCdiContainer();
cdiContainer.startApplicationScope();
cdiContainer.bootContainer();
}
@AfterClass
public static void shutdown() throws Exception {
cdiContainer.stopContexts();
cdiContainer.shutdownContainer();
}
@Before
public void setUp() {
CdiRepositoryClient client = cdiContainer.getInstance(CdiRepositoryClient.class);
repository = client.getRepository();
personRepository = client.getSamplePersonRepository();
repository.deleteAll();
qualifiedProductRepository = client.getQualifiedProductRepository();
}
@Test
public void testCdiRepository() {
assertNotNull(repository);
Product bean = new Product();
bean.setId("id-1");
bean.setName("cidContainerTest-1");
repository.save(bean);
assertTrue(repository.existsById(bean.getId()));
Optional<Product> retrieved = repository.findById(bean.getId());
assertTrue(retrieved.isPresent());
retrieved.ifPresent(product -> {
assertEquals(bean.getId(), product.getId());
assertEquals(bean.getName(), product.getName());
});
assertEquals(1, repository.count());
assertTrue(repository.existsById(bean.getId()));
repository.delete(bean);
assertEquals(0, repository.count());
retrieved = repository.findById(bean.getId());
assertFalse(retrieved.isPresent());
}
/**
* @see DATAES-234
*/
@Test
public void testQualifiedCdiRepository() {
assertNotNull(qualifiedProductRepository);
Product bean = new Product();
bean.setId("id-1");
bean.setName("cidContainerTest-1");
qualifiedProductRepository.save(bean);
assertTrue(qualifiedProductRepository.existsById(bean.getId()));
Optional<Product> retrieved = qualifiedProductRepository.findById(bean.getId());
assertTrue(retrieved.isPresent());
retrieved.ifPresent(product -> {
assertEquals(bean.getId(), product.getId());
assertEquals(bean.getName(), product.getName());
});
assertEquals(1, qualifiedProductRepository.count());
assertTrue(qualifiedProductRepository.existsById(bean.getId()));
qualifiedProductRepository.delete(bean);
assertEquals(0, qualifiedProductRepository.count());
retrieved = qualifiedProductRepository.findById(bean.getId());
assertFalse(retrieved.isPresent());
}
/**
* @see DATAES-113
*/
@Test
public void returnOneFromCustomImpl() {
assertThat(personRepository.returnOne(), is(1));
}
}
+5 -5
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
</beans>