Skip to content

Commit 6499afd

Browse files
Added documentation for validation-constraints
1 parent 6ba4ba3 commit 6499afd

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
* Auto-Fix problems with adding ids to entities with existing data store.
1919

20-
~~~~
2120
# 2.3.0
2221

2322
* Add support for shutting down the storage during application shutdown

docs/modules/ROOT/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
** xref:features/transactions.adoc[Transactions]
1010
** xref:features/versions.adoc[Versions]
1111
** xref:features/rest-api.adoc[REST Interface]
12+
** xref:features/validation-constraints.adoc[Validation Constraints]
1213
* xref:migration.adoc[Migration from JPA]
1314
* xref:known-issues.adoc[Known issues]

docs/modules/ROOT/pages/features/features.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
* xref:features/transactions.adoc[Transactions]
77
* xref:features/versions.adoc[Versions]
88
* xref:features/rest-api.adoc[REST Interface]
9+
* xref:features/validation-constraints.adoc[Validation Constraints]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
= Validation Constraints
2+
3+
By using the https://jakarta.ee/learn/docs/jakartaee-tutorial/current/beanvalidation/bean-validation/bean-validation.html[Jakarta Bean Validation Constraints] developers with {product-name} can easily limit the allowed input of entities.
4+
Here is a full list of supported validations: https://jakarta.ee/learn/docs/jakartaee-tutorial/current/beanvalidation/bean-validation/bean-validation.html#_using_jakarta_bean_validation_constraints[https://jakarta.ee/learn]
5+
6+
[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/model/Person.java[Example from complex demo]"]
7+
----
8+
package software.xdev.spring.data.eclipse.store.demo.complex.model;
9+
10+
import jakarta.validation.constraints.NotBlank;
11+
12+
public class Person extends BaseEntity
13+
{
14+
@NotBlank
15+
private String firstName;
16+
//...
17+
----
18+
19+
The ``jakarta.validation.Validator`` is provided by the https://github.com/xdev-software/spring-data-eclipse-store/tree/develop/spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/config/EclipseStoreClientConfiguration.java[``EclipseStoreClientConfiguration``] and can be changed in the project-specific configuration.

0 commit comments

Comments
 (0)