Skip to content

Commit 7abcf06

Browse files
committed
Merge branch 'develop' into update-from-template-merged
2 parents e67bdaa + 19bcf0f commit 7abcf06

File tree

567 files changed

+38168
-121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

567 files changed

+38168
-121
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ body:
1515
attributes:
1616
label: "Checklist"
1717
options:
18-
- label: "I am able to reproduce the bug with the [latest version](https://github.com/xdev-software/template-placeholder/releases/latest)"
18+
- label: "I am able to reproduce the bug with the [latest version](https://github.com/xdev-software/spring-data-eclipse-store/releases/latest)"
1919
required: true
20-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
20+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/spring-data-eclipse-store/issues) or [closed](https://github.com/xdev-software/spring-data-eclipse-store/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
2121
required: true
2222
- label: "I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise."
2323
required: true

.github/ISSUE_TEMPLATE/enhancement.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body:
1313
attributes:
1414
label: "Checklist"
1515
options:
16-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
16+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/spring-data-eclipse-store/issues) or [closed](https://github.com/xdev-software/spring-data-eclipse-store/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
1717
required: true
1818
- label: "I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise."
1919
required: true

.github/ISSUE_TEMPLATE/question.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
attributes:
1313
label: "Checklist"
1414
options:
15-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
15+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/spring-data-eclipse-store/issues) or [closed](https://github.com/xdev-software/spring-data-eclipse-store/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
1616
required: true
1717
- label: "I have taken the time to fill in all the required details. I understand that the question will be dismissed otherwise."
1818
required: true

.github/workflows/antora-build.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Antora Documentation Build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
ACTIONS_STEP_DEBUG : true
8+
9+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+
permissions:
11+
contents: read # Read permission for repository contents
12+
pages: write # Write permission for GitHub Pages
13+
id-token: write # Write permission for ID token
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
environment:
20+
name: github-pages
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Install Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 18
30+
31+
- name: Install Antora and the Antora Lunr Extension
32+
run: npm i antora @antora/lunr-extension
33+
34+
- name: Generate Site
35+
run: npx antora docs/antora-playbook.yml
36+
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v5
39+
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
name: site
44+
path: docs/site
45+
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4
49+
with:
50+
token: ${{ secrets.GITHUB_TOKEN }}
51+
artifact_name: site

.github/workflows/check-build.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ jobs:
117117
- name: Run PMD
118118
run: ./mvnw -B test pmd:aggregate-pmd-no-fork pmd:check -P pmd -DskipTests -T2C
119119

120-
- name: Run CPD (Copy Paste Detector)
121-
run: ./mvnw -B pmd:aggregate-cpd pmd:cpd-check -P pmd -DskipTests -T2C
122-
123120
- name: Upload report
124121
if: always()
125122
uses: actions/upload-artifact@v4
@@ -128,3 +125,20 @@ jobs:
128125
if-no-files-found: ignore
129126
path: |
130127
target/reports/**
128+
129+
docs:
130+
runs-on: ubuntu-latest
131+
132+
steps:
133+
- uses: actions/checkout@v4
134+
135+
- name: Install Node.js
136+
uses: actions/setup-node@v4
137+
with:
138+
node-version: 18
139+
140+
- name: Install Antora and the Antora Lunr Extension
141+
run: npm i antora @antora/lunr-extension
142+
143+
- name: Generate Site
144+
run: npx antora docs/antora-playbook.yml

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ hs_err_pid*
6161
.flattened-pom.xml
6262
.tern-project
6363

64+
# EclipseStore
65+
spring-data-eclipse-store/storage
66+
spring-data-eclipse-store-demo/storage
67+
spring-data-eclipse-store-demo/storage-person
68+
spring-data-eclipse-store-demo/storage-invoice
69+
spring-data-eclipse-store-demo/storage-complex
70+
spring-data-eclipse-store-demo/storage-lazy
71+
spring-data-eclipse-store-jpa/storage-eclipsestore
72+
spring-data-eclipse-store-jpa/storage-h2.mv.db
73+
spring-data-eclipse-store-jpa/storage-h2.trace.db
74+
6475
# == IntelliJ ==
6576
*.iml
6677
*.ipr

.run/Run Benchmark.run.xml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Benchmark" type="Application" factoryName="Application">
3+
<option name="MAIN_CLASS_NAME" value="software.xdev.spring.data.eclipse.store.benchmark.BenchmarkRunner" />
4+
<module name="spring-data-eclipse-store-benchmark" />
5+
<option name="VM_PARAMETERS" value="--add-opens java.base/java.util=ALL-UNNAMED" />
6+
<extension name="coverage">
7+
<pattern>
8+
<option name="PATTERN" value="software.xdev.spring.data.eclipse.store.benchmark.benchmarks.simple.user.*" />
9+
<option name="ENABLED" value="true" />
10+
</pattern>
11+
</extension>
12+
<method v="2">
13+
<option name="Make" enabled="true" />
14+
</method>
15+
</configuration>
16+
</component>

.run/Run Complex Demo.run.xml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Complex Demo" type="Application" factoryName="Application">
3+
<option name="MAIN_CLASS_NAME" value="software.xdev.spring.data.eclipse.store.demo.complex.ComplexDemoApplication" />
4+
<module name="spring-data-eclipse-store-demo" />
5+
<option name="VM_PARAMETERS" value="--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED" />
6+
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
7+
<extension name="coverage">
8+
<pattern>
9+
<option name="PATTERN" value="software.xdev.*" />
10+
<option name="ENABLED" value="true" />
11+
</pattern>
12+
</extension>
13+
<method v="2">
14+
<option name="Make" enabled="true" />
15+
</method>
16+
</configuration>
17+
</component>

.run/Run Dual Storage Demo.run.xml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Dual Storage Demo" type="Application" factoryName="Application">
3+
<option name="MAIN_CLASS_NAME" value="software.xdev.spring.data.eclipse.store.demo.dual.storage.DualStorageDemoApplication" />
4+
<module name="spring-data-eclipse-store-demo" />
5+
<option name="VM_PARAMETERS" value="--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-exports java.base/jdk.internal.misc=ALL-UNNAMED" />
6+
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
7+
<extension name="coverage">
8+
<pattern>
9+
<option name="PATTERN" value="software.xdev.*" />
10+
<option name="ENABLED" value="true" />
11+
</pattern>
12+
</extension>
13+
<method v="2">
14+
<option name="Make" enabled="true" />
15+
</method>
16+
</configuration>
17+
</component>

.run/Run Demo.run.xml renamed to .run/Run JPA Demo.run.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<component name="ProjectRunConfigurationManager">
2-
<configuration default="false" name="Run Demo" type="Application" factoryName="Application">
3-
<option name="MAIN_CLASS_NAME" value="software.xdev.Application" />
4-
<module name="template-placeholder-demo" />
2+
<configuration default="false" name="Run JPA Demo" type="Application" factoryName="Application">
3+
<option name="MAIN_CLASS_NAME" value="software.xdev.spring.data.eclipse.store.jpa.JpaDemoApplication" />
4+
<module name="spring-data-eclipse-store-jpa" />
55
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
66
<extension name="coverage">
77
<pattern>

.run/Run Simple Demo.run.xml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Simple Demo" type="Application" factoryName="Application">
3+
<option name="MAIN_CLASS_NAME" value="software.xdev.spring.data.eclipse.store.demo.simple.SimpleDemoApplication" />
4+
<module name="spring-data-eclipse-store-demo" />
5+
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
6+
<extension name="coverage">
7+
<pattern>
8+
<option name="PATTERN" value="software.xdev.*" />
9+
<option name="ENABLED" value="true" />
10+
</pattern>
11+
</extension>
12+
<method v="2">
13+
<option name="Make" enabled="true" />
14+
</method>
15+
</configuration>
16+
</component>

CHANGELOG.md

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
# 2.5.1
2+
3+
* Simplified configuration injection in ``EclipseStoreRepositoryFactoryBean``.
4+
* Updated EclipseStore to v2.1.1
5+
* Updated org.springframework.boot.version to v3.4.2
6+
7+
# 2.5.0
8+
9+
* Updated org.springframework.boot.version to v3.4.1
10+
* Added support for the [micro-migration-Framework](https://github.com/xdev-software/micro-migration)
11+
12+
# 2.4.1
13+
14+
* Updated EclipseStore to v2.1.0
15+
* Added EclipseStore-Rest-API to tests (storage-restservice-springboot)
16+
17+
# 2.4.0
18+
19+
* Updated org.springframework.boot.version to v3.4.0
20+
* Updated EclipseStore to v2.0.0
21+
* Implemented Lazy Repositories with ``LazyEclipseStoreRepository``
22+
23+
# 2.3.1
24+
25+
* Auto-Fix problems with adding ids to entities with existing data store.
26+
27+
# 2.3.0
28+
29+
* Add support for shutting down the storage during application shutdown
30+
* By default, only enabled when Spring DevTools are active
31+
* This should fix "StorageExceptionInitialization: Active storage for ... already exists" errors during DevTools restart
32+
* Added [Jakarta Bean Validation Constraints](https://jakarta.ee/learn/docs/jakartaee-tutorial/current/beanvalidation/bean-validation/bean-validation.html#_using_jakarta_bean_validation_constraints) with Hibernate validator for entities.
33+
34+
# 2.2.2
35+
36+
* Fixed NPE in EclipseSerializerRegisteringCopier
37+
38+
# 2.2.1
39+
40+
* Fixed release version
41+
42+
# 2.2.0
43+
44+
* Fixed issue with not found migration script (for v2.X)
45+
* Updated org.springframework.boot.version to v3.3.4
46+
47+
# 2.1.0
48+
49+
* Implemented auto-id-generation for UUIDs.
50+
* Implemented composite primary keys.
51+
* Keyword "ignoreCase" now available for queries.
52+
* Implemented ``@Query`` annotation with simple SQL-Selects
53+
54+
# 2.0.1
55+
56+
* Fix for Issue [#131](https://github.com/xdev-software/spring-data-eclipse-store/issues/131)
57+
58+
# 2.0.0
59+
60+
* Restructured root to improve performance with IDs in entities
61+
* Implemented auto migration for older version (<2.0.0).
62+
Added [XDEV MicroMigration](https://github.com/xdev-software/micro-migration) as dependency.
63+
* Updated EclipseStore version to 1.4.0
64+
* Updated Spring to version 3.3.2
65+
66+
# 1.0.10
67+
68+
* Optimistic locking with @Version now possible
69+
70+
# 1.0.9
71+
72+
* Inherited entities with repositories are now realized by reading (finding coherent repositories) and not by writing
73+
* Multiple restarts of the storage at initial startup is now fixed
74+
75+
# 1.0.8
76+
77+
* Entities with same ID are replaced on saved and not added
78+
* Updated Spring to version 3.3.1
79+
80+
# 1.0.7
81+
82+
* QueryByExample now possible
83+
* Performance optimizations
84+
* It's now possible to use multiple repositories with the same class/entity
85+
86+
# 1.0.6
87+
88+
* Fixed problem with missing configuration
89+
90+
# 1.0.5
91+
92+
* Added support for transactions
93+
94+
# 1.0.4
95+
96+
* Added possibility to use multiple storages
97+
* Added Lazy support
98+
99+
# 1.0.3
100+
101+
* Added the EclipseStoreDataImporter to import data from JPA repositories.
102+
* Updated EclipseStore to version 1.2.0
103+
* Updated Spring to version 3.2.3
104+
105+
# 1.0.2
106+
107+
* Added the EclipseStoreCustomRepository which has no methods defined at all.
108+
* EclipseStoreRepository extends the Crud- and PagingAndSorting-Repository (just like the
109+
org.springframework.data.jpa.repository.JpaRepository).
110+
111+
# 1.0.1
112+
113+
* Fix for NullPointerException when storing an entity with Auto-ID and no previous action on the database.
114+
* Provide multiple Repository Interfaces, not only EclipseStoreRepository (e.g. EclipseStoreCrudRepository).
115+
116+
# 1.0.0
117+
118+
* Initial release
119+

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ You should have the following things installed:
3434
* Ensure that the JDK/Java-Version is correct
3535

3636

37-
## Releasing [![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/template-placeholder/release.yml?branch=master)](https://github.com/xdev-software/template-placeholder/actions/workflows/release.yml)
37+
## Releasing [![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/spring-data-eclipse-store/release.yml?branch=master)](https://github.com/xdev-software/spring-data-eclipse-store/actions/workflows/release.yml)
3838

3939
Before releasing:
40-
* Consider doing a [test-deployment](https://github.com/xdev-software/template-placeholder/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
40+
* Consider doing a [test-deployment](https://github.com/xdev-software/spring-data-eclipse-store/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
4141
* Check the [changelog](CHANGELOG.md)
4242

4343
If the ``develop`` is ready for release, create a pull request to the ``master``-Branch and merge the changes

0 commit comments

Comments
 (0)