From 2983924ba7cfac7ca0b8bad76ad84bb2fc1ed9b6 Mon Sep 17 00:00:00 2001 From: buczekp <buczekp> Date: Tue, 27 Oct 2009 21:31:23 +0000 Subject: [PATCH] [LMS-1194] TODOs SVN: 13102 --- .../openbis/generic/shared/dto/EntityTypePropertyTypePE.java | 2 +- .../cisd/openbis/generic/shared/dto/ValidationMessages.java | 2 ++ .../cisd/openbis/generic/shared/dto/VocabularyTermPE.java | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/EntityTypePropertyTypePE.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/EntityTypePropertyTypePE.java index 1154ae358f8..49a6438fc65 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/EntityTypePropertyTypePE.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/EntityTypePropertyTypePE.java @@ -128,7 +128,7 @@ public abstract class EntityTypePropertyTypePE extends HibernateAbstractRegistra } @Column(name = ColumnNames.ORDINAL_COLUMN) - // TODO 2009-10-26, Piotr Buczek: add not null? + @NotNull(message = ValidationMessages.ORDINAL_NOT_NULL_MESSAGE) public Long getOrdinal() { return ordinal; diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/ValidationMessages.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/ValidationMessages.java index 32fe5aad32d..8bcb33678a9 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/ValidationMessages.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/ValidationMessages.java @@ -62,6 +62,8 @@ public final class ValidationMessages public static final String CODE_NOT_NULL_MESSAGE = "Code" + CAN_NOT_BE_NULL; + public static final String ORDINAL_NOT_NULL_MESSAGE = "Ordinal" + CAN_NOT_BE_NULL; + public static final String NAME_NOT_NULL_MESSAGE = "Name" + CAN_NOT_BE_NULL; public static final String CODE_PATTERN_MESSAGE = diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/VocabularyTermPE.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/VocabularyTermPE.java index 4aa3d10a520..de053d34b08 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/VocabularyTermPE.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/VocabularyTermPE.java @@ -116,7 +116,7 @@ public class VocabularyTermPE extends HibernateAbstractRegistrationHolder implem } @Column(name = ColumnNames.ORDINAL_COLUMN) - // TODO 2009-10-26, Piotr Buczek: add not null? + @NotNull(message = ValidationMessages.ORDINAL_NOT_NULL_MESSAGE) public Long getOrdinal() { return ordinal; -- GitLab