Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Spring examples to a separate directory [DEX-294] #688

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions hazelcast-integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,3 @@
Implementation of integration of MongoDB with hazelcast.
- <h3>openshift</h3>
A guideline to start using Hazelcast on the Red Hat OpenShift platform.
- <h3>spring-configuration</h3>
Implementation of spring framework integration of hazelcast.
- <h3>spring-data-hazelcast-chemistry-sample</h3>
Example client-server Spring Data Hazelcast project, chemistry elements and isotopes.
- <h3>spring-data-jpa-hazelcast-migration</h3>
Example of migrating from JPA to Hazelcast with Spring Data
- <h3>spring-hibernate-2ndlevel-cache</h3>
Implementation of spring and hibernate 2nd level cache integration of hazelcast as customer managing application.
- <h3>springaware-annotation</h3>
Example usage of SpringAware annotation.
- <h3>springboot-caching-jcache</h3>
Implementation of Spring Boot Caching Auto Configuration feature for Hazelcast and JCache.
- <h3>springboot-caching</h3>
Spring Boot Hazelcast Integration Example via [Spring Framework Caching Abstraction](https://docs.spring.io/spring/docs/current/spring-framework-reference/integration.html#cache).
- <h3>springboot-http</h3>
Spring Boot style HTTP session replication, using embedded web container in standalone Jar.
5 changes: 0 additions & 5 deletions hazelcast-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@
<module>kubernetes</module>
<module>manager-based-session-replication</module>
<module>openshift</module>
<module>spring-configuration</module>
<module>spring-data-hazelcast-chemistry-sample</module>
<module>spring-data-jpa-hazelcast-migration</module>
<module>springaware-annotation</module>
<module>eureka</module>
<module>spring-hibernate-2ndlevel-cache</module>
</modules>

<dependencies>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
<module>querying</module>
<module>serialization</module>
<module>spi</module>
<module>spring</module>
<module>transactions</module>
<module>variable-replacers</module>
<module>generic-record</module>
Expand Down
18 changes: 18 additions & 0 deletions spring/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<h1>Hazelcast Examples with Spring and Spring Boot</h1>

- <h3>spring-configuration</h3>
Implementation of spring framework integration of hazelcast.
- <h3>spring-data-hazelcast-chemistry-sample</h3>
Example client-server Spring Data Hazelcast project, chemistry elements and isotopes.
- <h3>spring-data-jpa-hazelcast-migration</h3>
Example of migrating from JPA to Hazelcast with Spring Data
- <h3>spring-hibernate-2ndlevel-cache</h3>
Implementation of spring and hibernate 2nd level cache integration of hazelcast as customer managing application.
- <h3>springaware-annotation</h3>
Example usage of SpringAware annotation.
- <h3>springboot-caching-jcache</h3>
Implementation of Spring Boot Caching Auto Configuration feature for Hazelcast and JCache.
- <h3>springboot-caching</h3>
Spring Boot Hazelcast Integration Example via [Spring Framework Caching Abstraction](https://docs.spring.io/spring/docs/current/spring-framework-reference/integration.html#cache).
- <h3>springboot-http</h3>
Spring Boot style HTTP session replication, using embedded web container in standalone Jar.
60 changes: 60 additions & 0 deletions spring/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
~
~ 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.
~
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>spring</artifactId>
<packaging>pom</packaging>

<parent>
<artifactId>code-samples</artifactId>
<groupId>com.hazelcast.samples</groupId>
<version>0.1-SNAPSHOT</version>
</parent>

<properties>
<!-- needed for checkstyle/findbugs -->
<main.basedir>${project.parent.basedir}</main.basedir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<modules>
<module>spring-configuration</module>
<module>spring-data-hazelcast-chemistry-sample</module>
<module>spring-data-jpa-hazelcast-migration</module>
<module>spring-hibernate-2ndlevel-cache</module>
<module>springaware-annotation</module>
</modules>

<dependencies>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>${hazelcast.version}</version>
</dependency>

<dependency>
<groupId>com.hazelcast.samples</groupId>
<artifactId>helper</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<url>http://hazelcast.org/</url>

<parent>
<artifactId>hazelcast-integration</artifactId>
<artifactId>spring</artifactId>
<groupId>com.hazelcast.samples</groupId>
<version>0.1-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<artifactId>hazelcast-integration</artifactId>
<artifactId>spring</artifactId>
<groupId>com.hazelcast.samples</groupId>
<version>0.1-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<artifactId>hazelcast-integration</artifactId>
<artifactId>spring</artifactId>
<groupId>com.hazelcast.samples</groupId>
<version>0.1-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ in `application.properties`.
You can spin-up a PostgreSQL instance easily using Docker:

```shell
docker run --name 2lc-postgres --publish 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword postgres:15
docker run --name 2lc-postgres --publish 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword postgres
```

If you want to use Hazelcast client, you can start an IMDG instance in a Docker container easily, and then connect to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>hazelcast-integration</artifactId>
<artifactId>spring</artifactId>
<groupId>com.hazelcast.samples</groupId>
<version>0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>spring-hibernate-2lc</artifactId>
<name>spring-hibernate-2lc</name>
<description>Demo project for Spring Boot</description>
<description>Demo project for Spring Boot and Hibernate 2nd level cache</description>

<properties>
<!-- needed for checkstyle/findbugs -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<artifactId>springaware-annotation</artifactId>

<parent>
<artifactId>hazelcast-integration</artifactId>
<artifactId>spring</artifactId>
<groupId>com.hazelcast.samples</groupId>
<version>0.1-SNAPSHOT</version>
</parent>
Expand Down
Loading