fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-customer] 29/46: using valid identifier for domain objects
Date Mon, 22 Jan 2018 15:47:30 GMT
This is an automated email from the ASF dual-hosted git repository.

myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-customer.git

commit e86d2a166ab0d794a3f9a28da00df96e2960d2c0
Author: mgeiss <mgeiss@mifos.org>
AuthorDate: Thu Sep 28 12:36:40 2017 +0200

    using valid identifier for domain objects
---
 .../main/java/io/mifos/customer/catalog/api/v1/domain/Catalog.java   | 3 ++-
 api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Field.java | 3 ++-
 api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Value.java | 5 +++--
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Catalog.java b/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Catalog.java
index cf0a8e0..81f0610 100644
--- a/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Catalog.java
+++ b/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Catalog.java
@@ -15,6 +15,7 @@
  */
 package io.mifos.customer.catalog.api.v1.domain;
 
+import io.mifos.core.lang.validation.constraints.ValidIdentifier;
 import org.hibernate.validator.constraints.NotEmpty;
 
 import javax.validation.Valid;
@@ -22,7 +23,7 @@ import java.util.List;
 
 public class Catalog {
 
-  @NotEmpty
+  @ValidIdentifier
   private String identifier;
   @NotEmpty
   private String name;
diff --git a/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Field.java b/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Field.java
index 61aebd4..d758b95 100644
--- a/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Field.java
+++ b/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Field.java
@@ -15,6 +15,7 @@
  */
 package io.mifos.customer.catalog.api.v1.domain;
 
+import io.mifos.core.lang.validation.constraints.ValidIdentifier;
 import org.hibernate.validator.constraints.NotEmpty;
 
 import javax.validation.Valid;
@@ -31,7 +32,7 @@ public class Field {
     MULTI_SELECTION
   }
 
-  @NotEmpty
+  @ValidIdentifier
   private String identifier;
   @NotNull
   private DataType dataType;
diff --git a/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Value.java b/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Value.java
index c6e688d..03d486f 100644
--- a/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Value.java
+++ b/api/src/main/java/io/mifos/customer/catalog/api/v1/domain/Value.java
@@ -15,13 +15,14 @@
  */
 package io.mifos.customer.catalog.api.v1.domain;
 
+import io.mifos.core.lang.validation.constraints.ValidIdentifier;
 import org.hibernate.validator.constraints.NotEmpty;
 
 public class Value {
 
-  @NotEmpty
+  @ValidIdentifier
   private String catalogIdentifier;
-  @NotEmpty
+  @ValidIdentifier
   private String fieldIdentifier;
   @NotEmpty
   private String value;

-- 
To stop receiving notification emails like this one, please contact
myrle@apache.org.

Mime
View raw message