You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by na...@apache.org on 2021/04/07 07:42:18 UTC

[ignite-extensions] branch ignite-spring-data-all-ext-1.0.0 created (now 277ca95)

This is an automated email from the ASF dual-hosted git repository.

namelchev pushed a change to branch ignite-spring-data-all-ext-1.0.0
in repository https://gitbox.apache.org/repos/asf/ignite-extensions.git.


      at 277ca95  Release spring data extensions v.1.0.0

This branch includes the following new commits:

     new c7bcb8b  IGNITE-13769 Adds examples of using thin client with spring-data-ext. (#51)
     new d24fb83  IGNITE-14456 Change copyrights to 2021 (#53)
     new 79f3c42  IGNITE-14480 Add release notes for performance-statistics-ext, spring-data*-ext, spring-tx-ext extensions 1.0.0 version (#54)
     new 277ca95  Release spring data extensions v.1.0.0

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[ignite-extensions] 04/04: Release spring data extensions v.1.0.0

Posted by na...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

namelchev pushed a commit to branch ignite-spring-data-all-ext-1.0.0
in repository https://gitbox.apache.org/repos/asf/ignite-extensions.git

commit 277ca95f6472d8bd46d906e70ba1a312d36dadb0
Author: NSAmelchev <ns...@gmail.com>
AuthorDate: Wed Apr 7 10:41:20 2021 +0300

    Release spring data extensions v.1.0.0
---
 modules/spring-data-2.0-ext/pom.xml | 2 +-
 modules/spring-data-2.2-ext/pom.xml | 2 +-
 modules/spring-data-commons/pom.xml | 2 +-
 modules/spring-data-ext/pom.xml     | 2 +-
 parent/pom.xml                      | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/spring-data-2.0-ext/pom.xml b/modules/spring-data-2.0-ext/pom.xml
index f156aa0..96f6d90 100644
--- a/modules/spring-data-2.0-ext/pom.xml
+++ b/modules/spring-data-2.0-ext/pom.xml
@@ -31,7 +31,7 @@
     </parent>
 
     <artifactId>ignite-spring-data_2.0-ext</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
+    <version>1.0.0</version>
     <url>http://ignite.apache.org</url>
 
     <dependencies>
diff --git a/modules/spring-data-2.2-ext/pom.xml b/modules/spring-data-2.2-ext/pom.xml
index 97b5ece..722bf5c 100644
--- a/modules/spring-data-2.2-ext/pom.xml
+++ b/modules/spring-data-2.2-ext/pom.xml
@@ -31,7 +31,7 @@
     </parent>
 
     <artifactId>ignite-spring-data_2.2-ext</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
+    <version>1.0.0</version>
     <url>http://ignite.apache.org</url>
 
     <dependencies>
diff --git a/modules/spring-data-commons/pom.xml b/modules/spring-data-commons/pom.xml
index 5e9be93..42e0b56 100644
--- a/modules/spring-data-commons/pom.xml
+++ b/modules/spring-data-commons/pom.xml
@@ -33,7 +33,7 @@
     </parent>
 
     <artifactId>ignite-spring-data-commons</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
+    <version>1.0.0</version>
     <url>http://ignite.apache.org</url>
 
     <dependencies>
diff --git a/modules/spring-data-ext/pom.xml b/modules/spring-data-ext/pom.xml
index e635565..44cf16f 100644
--- a/modules/spring-data-ext/pom.xml
+++ b/modules/spring-data-ext/pom.xml
@@ -31,7 +31,7 @@
     </parent>
 
     <artifactId>ignite-spring-data-ext</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
+    <version>1.0.0</version>
     <url>http://ignite.apache.org</url>
 
     <dependencies>
diff --git a/parent/pom.xml b/parent/pom.xml
index 7492556..44f26df 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -36,7 +36,7 @@
         <maven.compiler.source>1.8</maven.compiler.source>
         <maven.compiler.target>1.8</maven.compiler.target>
 
-        <ignite.version>2.11.0-SNAPSHOT</ignite.version>
+        <ignite.version>2.10.0</ignite.version>
 
         <ignite.edition>apache-ignite</ignite.edition>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

[ignite-extensions] 02/04: IGNITE-14456 Change copyrights to 2021 (#53)

Posted by na...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

namelchev pushed a commit to branch ignite-spring-data-all-ext-1.0.0
in repository https://gitbox.apache.org/repos/asf/ignite-extensions.git

commit d24fb83b83af26ff5dd1ea712ce7f3fbf216b5b3
Author: Nikita Amelchev <ns...@gmail.com>
AuthorDate: Thu Apr 1 14:03:32 2021 +0300

    IGNITE-14456 Change copyrights to 2021 (#53)
    
    (cherry picked from commit 800ed9d1676bd49423915dc75dd2acf2e3ed9bdf)
---
 NOTICE                                                     |  2 +-
 .../springdata20/repository/query/DeclaredQuery.java       | 12 +++++++-----
 .../springdata20/repository/query/EmptyDeclaredQuery.java  | 12 +++++++-----
 .../repository/query/ExpressionBasedStringQuery.java       | 12 +++++++-----
 .../ignite/springdata20/repository/query/QueryUtils.java   | 12 +++++++-----
 .../ignite/springdata20/repository/query/StringQuery.java  | 12 +++++++-----
 .../springdata20/repository/query/spel/SpelEvaluator.java  | 14 ++++++++------
 .../repository/query/spel/SpelQueryContext.java            | 14 ++++++++------
 .../springdata22/repository/query/DeclaredQuery.java       | 12 +++++++-----
 .../springdata22/repository/query/EmptyDeclaredQuery.java  | 12 +++++++-----
 .../repository/query/ExpressionBasedStringQuery.java       | 12 +++++++-----
 .../ignite/springdata22/repository/query/QueryUtils.java   | 12 +++++++-----
 .../ignite/springdata22/repository/query/StringQuery.java  | 12 +++++++-----
 13 files changed, 87 insertions(+), 63 deletions(-)

diff --git a/NOTICE b/NOTICE
index 84204dd..f7eb3cb 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 Apache Ignite Extensions
-Copyright 2019 The Apache Software Foundation
+Copyright 2021 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
diff --git a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/DeclaredQuery.java b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/DeclaredQuery.java
index 297d35c..fa5043d 100644
--- a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/DeclaredQuery.java
+++ b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/DeclaredQuery.java
@@ -1,9 +1,10 @@
 /*
- * Copyright 2018-2019 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata20.repository.query;
 
 import java.util.List;
diff --git a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/EmptyDeclaredQuery.java b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/EmptyDeclaredQuery.java
index 34fdb8c..4714f38 100644
--- a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/EmptyDeclaredQuery.java
+++ b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/EmptyDeclaredQuery.java
@@ -1,9 +1,10 @@
 /*
- * Copyright 2018-2019 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata20.repository.query;
 
 import java.util.Collections;
diff --git a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/ExpressionBasedStringQuery.java b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/ExpressionBasedStringQuery.java
index b7559a5..b1115ae 100644
--- a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/ExpressionBasedStringQuery.java
+++ b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/ExpressionBasedStringQuery.java
@@ -1,9 +1,10 @@
 /*
- * Copyright 2013-2019 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata20.repository.query;
 
 import java.util.regex.Pattern;
diff --git a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/QueryUtils.java b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/QueryUtils.java
index c586770..a44ae6c 100644
--- a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/QueryUtils.java
+++ b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/QueryUtils.java
@@ -1,9 +1,10 @@
 /*
- * Copyright 2008-2019 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata20.repository.query;
 
 import java.util.HashSet;
diff --git a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/StringQuery.java b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/StringQuery.java
index 7280276..40752b5 100644
--- a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/StringQuery.java
+++ b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/StringQuery.java
@@ -1,9 +1,10 @@
 /*
- * Copyright 2013-2019 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata20.repository.query;
 
 import java.lang.reflect.Array;
diff --git a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/spel/SpelEvaluator.java b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/spel/SpelEvaluator.java
index 1c30673..c442b68 100644
--- a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/spel/SpelEvaluator.java
+++ b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/spel/SpelEvaluator.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2018-2019 the original author or authors.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
- * 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
- *
- *      https://www.apache.org/licenses/LICENSE-2.0
+ *      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,
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata20.repository.query.spel;
 
 import java.util.Map;
diff --git a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/spel/SpelQueryContext.java b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/spel/SpelQueryContext.java
index 40de67a..44bfec8 100644
--- a/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/spel/SpelQueryContext.java
+++ b/modules/spring-data-2.0-ext/src/main/java/org/apache/ignite/springdata20/repository/query/spel/SpelQueryContext.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2018-2019 the original author or authors.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
- * 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
- *
- *      https://www.apache.org/licenses/LICENSE-2.0
+ *      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,
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata20.repository.query.spel;
 
 import java.util.ArrayList;
diff --git a/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/DeclaredQuery.java b/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/DeclaredQuery.java
index 74ab2cc..dad35e2 100644
--- a/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/DeclaredQuery.java
+++ b/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/DeclaredQuery.java
@@ -1,9 +1,10 @@
 /*
- * Copyright 2018-2019 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata22.repository.query;
 
 import java.util.List;
diff --git a/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/EmptyDeclaredQuery.java b/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/EmptyDeclaredQuery.java
index 7803537..6f697a2 100644
--- a/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/EmptyDeclaredQuery.java
+++ b/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/EmptyDeclaredQuery.java
@@ -1,9 +1,10 @@
 /*
- * Copyright 2018-2019 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata22.repository.query;
 
 import java.util.Collections;
diff --git a/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/ExpressionBasedStringQuery.java b/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/ExpressionBasedStringQuery.java
index bdbd81d..9279da7 100644
--- a/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/ExpressionBasedStringQuery.java
+++ b/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/ExpressionBasedStringQuery.java
@@ -1,9 +1,10 @@
 /*
- * Copyright 2013-2019 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata22.repository.query;
 
 import java.util.regex.Pattern;
diff --git a/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/QueryUtils.java b/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/QueryUtils.java
index 711d297..90cc292 100644
--- a/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/QueryUtils.java
+++ b/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/QueryUtils.java
@@ -1,9 +1,10 @@
 /*
- * Copyright 2008-2019 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata22.repository.query;
 
 import java.util.HashSet;
diff --git a/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/StringQuery.java b/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/StringQuery.java
index 8957e69..01af166 100644
--- a/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/StringQuery.java
+++ b/modules/spring-data-2.2-ext/src/main/java/org/apache/ignite/springdata22/repository/query/StringQuery.java
@@ -1,9 +1,10 @@
 /*
- * Copyright 2013-2019 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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
  *
@@ -13,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.ignite.springdata22.repository.query;
 
 import java.lang.reflect.Array;

[ignite-extensions] 01/04: IGNITE-13769 Adds examples of using thin client with spring-data-ext. (#51)

Posted by na...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

namelchev pushed a commit to branch ignite-spring-data-all-ext-1.0.0
in repository https://gitbox.apache.org/repos/asf/ignite-extensions.git

commit c7bcb8bf8c6a948ce169c66299cc4d3a5b8fa8a8
Author: Mikhail Petrov <32...@users.noreply.github.com>
AuthorDate: Tue Mar 30 01:45:38 2021 +0300

    IGNITE-13769 Adds examples of using thin client with spring-data-ext. (#51)
    
    (cherry picked from commit 484a26f97ca7075ee314ce64fc45d4d812b816b1)
---
 ...IgniteClientSpringApplicationConfiguration.java | 53 ++++++++++++++++++++++
 .../springdata20/examples/SpringDataExample.java   | 41 +++++++++++++++--
 2 files changed, 89 insertions(+), 5 deletions(-)

diff --git a/modules/spring-data-2.0-ext/examples/main/java/org/apache/ignite/springdata20/examples/IgniteClientSpringApplicationConfiguration.java b/modules/spring-data-2.0-ext/examples/main/java/org/apache/ignite/springdata20/examples/IgniteClientSpringApplicationConfiguration.java
new file mode 100644
index 0000000..e04a50a
--- /dev/null
+++ b/modules/spring-data-2.0-ext/examples/main/java/org/apache/ignite/springdata20/examples/IgniteClientSpringApplicationConfiguration.java
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.apache.ignite.springdata20.examples;
+
+import org.apache.ignite.Ignition;
+import org.apache.ignite.client.IgniteClient;
+import org.apache.ignite.configuration.ClientConfiguration;
+import org.apache.ignite.springdata20.repository.config.EnableIgniteRepositories;
+import org.apache.ignite.springdata20.repository.config.RepositoryConfig;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import static org.apache.ignite.configuration.ClientConnectorConfiguration.DFLT_PORT;
+
+/**
+ * Example of Spring application configuration that represents beans required to configure Spring Data repository access
+ * to an Ignite cluster through the thin client.
+ *
+ * Note that both Ignite thin client and Ignite node approaches of Ignite cluster access configuration uses the same API.
+ * Ignite Spring Data integration automatically recognizes the type of provided bean and use the appropriate
+ * cluster connection.
+ *
+ * @see SpringApplicationConfiguration
+ */
+@Configuration
+@EnableIgniteRepositories
+public class IgniteClientSpringApplicationConfiguration {
+    /**
+     * Creates Apache Ignite thin client instance bean which will be used for accessing the Ignite cluster.
+     * Note, that the name of the current bean must match value of {@link RepositoryConfig#igniteInstance}
+     * property that {@link PersonRepository} is marked with. In this particular case, the default value of
+     * {@link RepositoryConfig#igniteInstance} property is used.
+     */
+    @Bean
+    public IgniteClient igniteInstance() {
+        return Ignition.startClient(new ClientConfiguration().setAddresses("127.0.0.1:" + DFLT_PORT));
+    }
+}
diff --git a/modules/spring-data-2.0-ext/examples/main/java/org/apache/ignite/springdata20/examples/SpringDataExample.java b/modules/spring-data-2.0-ext/examples/main/java/org/apache/ignite/springdata20/examples/SpringDataExample.java
index a3d5547..325dd54 100644
--- a/modules/spring-data-2.0-ext/examples/main/java/org/apache/ignite/springdata20/examples/SpringDataExample.java
+++ b/modules/spring-data-2.0-ext/examples/main/java/org/apache/ignite/springdata20/examples/SpringDataExample.java
@@ -22,6 +22,10 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.TreeMap;
 import javax.cache.Cache;
+import org.apache.ignite.Ignite;
+import org.apache.ignite.Ignition;
+import org.apache.ignite.configuration.CacheConfiguration;
+import org.apache.ignite.configuration.IgniteConfiguration;
 import org.apache.ignite.springdata20.examples.model.Person;
 import org.springframework.context.annotation.AnnotationConfigApplicationContext;
 import org.springframework.data.domain.PageRequest;
@@ -40,12 +44,37 @@ public class SpringDataExample {
     private static PersonRepository repo;
 
     /**
-     * Executes the example.
+     * Execute examples involving both approaches to configure Spring Data repository access to an Ignite cluster:
+     *      through Ignite thin client and through Ignite node.
      * @param args Command line arguments, none required.
      */
     public static void main(String[] args) {
-        // Initializing Spring Data context and Ignite repository.
-        igniteSpringDataInit();
+        try (Ignite ignored = startIgniteNode()) {
+            // Ignite node instance is used to configure access to the Ignite cluster.
+            doSpringDataExample(SpringApplicationConfiguration.class);
+
+            // Ignite thin client instance is used to configure access to the Ignite cluster.
+            doSpringDataExample(IgniteClientSpringApplicationConfiguration.class);
+        }
+    }
+
+    /** Starts an Ignite node that simulates an Ignite cluster to which Spring Data repository will perform access. */
+    private static Ignite startIgniteNode() {
+        IgniteConfiguration cfg = new IgniteConfiguration()
+            .setPeerClassLoadingEnabled(true)
+            .setCacheConfiguration(new CacheConfiguration<Long, Person>("PersonCache")
+                .setIndexedTypes(Long.class, Person.class));
+
+        return Ignition.start(cfg);
+    }
+
+    /**
+     * Performs basic Spring Data repository operation.
+     *
+     * @param springAppCfg Class of Spring application configuration that will be used for Spring context initialization.
+     */
+    private static void doSpringDataExample(Class<?> springAppCfg) {
+        igniteSpringDataInit(springAppCfg);
 
         populateRepository();
 
@@ -65,12 +94,14 @@ public class SpringDataExample {
 
     /**
      * Initializes Spring Data and Ignite repositories.
+     *
+     * @param springAppCfg Class of Spring application configuration that will be used for Spring context initialization.
      */
-    private static void igniteSpringDataInit() {
+    private static void igniteSpringDataInit(Class<?> springAppCfg) {
         ctx = new AnnotationConfigApplicationContext();
 
         // Explicitly registering Spring configuration.
-        ctx.register(SpringApplicationConfiguration.class);
+        ctx.register(springAppCfg);
 
         ctx.refresh();
 

[ignite-extensions] 03/04: IGNITE-14480 Add release notes for performance-statistics-ext, spring-data*-ext, spring-tx-ext extensions 1.0.0 version (#54)

Posted by na...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

namelchev pushed a commit to branch ignite-spring-data-all-ext-1.0.0
in repository https://gitbox.apache.org/repos/asf/ignite-extensions.git

commit 79f3c42807302de5ea5bc6f3b1df61b2e1f8210a
Author: Nikita Amelchev <ns...@gmail.com>
AuthorDate: Mon Apr 5 19:32:38 2021 +0300

    IGNITE-14480 Add release notes for performance-statistics-ext, spring-data*-ext, spring-tx-ext extensions 1.0.0 version (#54)
    
    (cherry picked from commit c8de80ee14d1fb76d6cbb0b18513bb70b499c3cb)
---
 RELEASE_NOTES.txt | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index 8451780..22f8d66 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -1,6 +1,34 @@
 Apache Ignite Extensions Release Notes
 ===========================
 
+Apache Ignite Performance Statistics Module 1.0
+-------------------------------------
+
+* Added the tool to build the cluster performance report
+* Added the utility to print performance statistics operations to a console or to a file in JSON format
+
+
+Apache Ignite Spring Data Modules 1.0
+-------------------------------------
+
+* Added the ability to connect to the Ignite cluster through the Ignite thin client for the Spring Data extensions
+* Fixed closing of Spring Data Ignite resources after destroying the Spring context if they were automatically started by the manager
+
+The following integrations were migrated to the Apache Ignite Extensions repository:
+* Spring Data 2.2 extension
+* Spring Data 2.0 extension
+* Spring Data extension
+
+
+Apache Ignite Spring Transactions Module 1.0
+-------------------------------------
+
+* Added the ability to connect to the Ignite cluster through the Ignite thin client
+
+The following integration was migrated to the Apache Ignite Extensions repository:
+* Spring Transactions extension
+
+
 Apache Ignite Streamer Extension Modules 1.0
 -------------------------------------
 The following integrations were migrated the Apache Ignite Extensions repository: