-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from xdev-software/develop
v2.4.1
- Loading branch information
Showing
24 changed files
with
361 additions
and
93 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" version="25.0.3"> | ||
<diagram name="Page-1" id="6GyipOatxIIVSVKHxFAy"> | ||
<mxGraphModel dx="1562" dy="845" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> | ||
<root> | ||
<mxCell id="0" /> | ||
<mxCell id="1" parent="0" /> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-15" value="" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=none;" vertex="1" parent="1"> | ||
<mxGeometry x="150" y="120" width="430" height="250" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-5" value="" style="group" vertex="1" connectable="0" parent="1"> | ||
<mxGeometry x="440" y="140" width="100" height="100" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-3" value="" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;fillColor=none;strokeColor=#D62125;strokeWidth=3;align=center;verticalAlign=middle;fontFamily=Helvetica;fontSize=12;fontColor=default;" vertex="1" parent="hvzIIKVZ51MqT405g5E5-5"> | ||
<mxGeometry x="20" y="20" width="60" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-4" value="<span style="font-weight: 400; text-wrap-mode: wrap;">ArticleRepository</span>" style="text;strokeColor=none;fillColor=none;html=1;fontSize=15;fontStyle=1;verticalAlign=middle;align=center;" vertex="1" parent="hvzIIKVZ51MqT405g5E5-5"> | ||
<mxGeometry y="-10" width="100" height="20" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-6" value="" style="group" vertex="1" connectable="0" parent="1"> | ||
<mxGeometry x="190" y="140" width="100" height="100" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-1" value="" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;fillColor=none;strokeColor=#D62125;strokeWidth=3;" vertex="1" parent="hvzIIKVZ51MqT405g5E5-6"> | ||
<mxGeometry x="20" y="20" width="60" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-2" value="<span style="font-weight: 400; text-wrap-mode: wrap;">OrderRepository</span>" style="text;strokeColor=none;fillColor=none;html=1;fontSize=15;fontStyle=1;verticalAlign=middle;align=center;" vertex="1" parent="hvzIIKVZ51MqT405g5E5-6"> | ||
<mxGeometry y="-10" width="100" height="20" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-7" value="<font>Order</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=15;fillColor=none;strokeColor=#D62125;strokeWidth=3;align=center;verticalAlign=middle;fontFamily=Helvetica;fontColor=default;" vertex="1" parent="1"> | ||
<mxGeometry x="180" y="290" width="120" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-8" value="<font>Article</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=15;fillColor=none;strokeColor=#D62125;strokeWidth=3;align=center;verticalAlign=middle;fontFamily=Helvetica;fontColor=default;" vertex="1" parent="1"> | ||
<mxGeometry x="430" y="290" width="120" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-16" value="" style="shape=flexArrow;endArrow=classic;startArrow=none;html=1;rounded=0;strokeColor=#C91F24;strokeWidth=2;fillColor=default;startFill=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="1" source="hvzIIKVZ51MqT405g5E5-7" target="hvzIIKVZ51MqT405g5E5-8"> | ||
<mxGeometry width="100" height="100" relative="1" as="geometry"> | ||
<mxPoint x="320" y="470" as="sourcePoint" /> | ||
<mxPoint x="480" y="470" as="targetPoint" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="hvzIIKVZ51MqT405g5E5-20" value="<span style="font-family: &quot;Courier New&quot;; font-size: 15px; font-weight: 700;">@OneToMany</span>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="hvzIIKVZ51MqT405g5E5-16"> | ||
<mxGeometry x="0.21" relative="1" as="geometry"> | ||
<mxPoint x="-17" y="-30" as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
name: ROOT | ||
title: Spring-Data-Eclipse-Store | ||
version: master | ||
display_version: '2.4.0' | ||
display_version: '2.4.1' | ||
start_page: index.adoc | ||
nav: | ||
- modules/ROOT/nav.adoc | ||
asciidoc: | ||
attributes: | ||
product-name: 'Spring-Data-Eclipse-Store' | ||
display-version: '2.4.0' | ||
maven-version: '2.4.0' | ||
display-version: '2.4.1' | ||
maven-version: '2.4.1' | ||
page-editable: false | ||
page-out-of-support: false |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
= REST Interface | ||
|
||
To utilize the https://docs.eclipsestore.io/manual/storage/rest-interface/index.html[REST interface provided by EclipseStore], only a small adjustment is needed. | ||
|
||
First add the dependency described in the https://docs.eclipsestore.io/manual/storage/rest-interface/setup.html#_spring_boot_rest_service[EclipseStore documentation]: | ||
[source,xml,subs=attributes+,title="Maven [pom.xml]"] | ||
---- | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.eclipse.store</groupId> | ||
<artifactId>storage-restservice-springboot</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-web</artifactId> | ||
</dependency> | ||
</dependencies> | ||
---- | ||
Next a few adjustments are needed in your configuration: | ||
[source,java,title="https://github.com/xdev-software/spring-data-eclipse-store/blob/develop/spring-data-eclipse-store-demo/src/main/java/software/xdev/spring/data/eclipse/store/demo/complex/ComplexConfiguration.java[Example from complex demo]"] | ||
---- | ||
package software.xdev.spring.data.eclipse.store.demo.complex; | ||
//... | ||
import org.eclipse.store.storage.restadapter.types.StorageRestAdapter; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.ComponentScan; | ||
import org.springframework.context.annotation.Configuration; | ||
import software.xdev.spring.data.eclipse.store.repository.config.EclipseStoreClientConfiguration; | ||
import software.xdev.spring.data.eclipse.store.repository.config.EnableEclipseStoreRepositories; | ||
@ComponentScan({"org.eclipse.store.storage.restservice.spring.boot.types.rest"}) | ||
@Configuration | ||
@EnableEclipseStoreRepositories | ||
public class ComplexConfiguration extends EclipseStoreClientConfiguration | ||
{ | ||
//... | ||
@Bean | ||
@DependsOn({"embeddedStorageFoundationFactory"}) | ||
public Map<String, StorageRestAdapter> storageRestAdapters(final Map<String, EmbeddedStorageManager> storages) | ||
{ | ||
return Map.of( | ||
"defaultStorageManager", StorageRestAdapter.New(this.storageInstance.getInstanceOfStorageManager()) | ||
); | ||
} | ||
//... | ||
---- | ||
After that the API is usable just like https://docs.eclipsestore.io/manual/storage/rest-interface/rest-api.html[plain EclipseStore]. | ||
The ``instance-name`` in this case would be ``default`` which means, the active URL in the ComplexDemo is ``http://localhost:8080/store-data/default/root``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.