From 94fd7dd6a9bb3c2feae6409211bb1774632e11f6 Mon Sep 17 00:00:00 2001 From: Lubos Racansky Date: Tue, 10 Jan 2023 11:04:13 +0100 Subject: [PATCH 1/2] Add javadoc to OperationTemplateEntity#placeholder --- .../database/OperationTemplateRepository.java | 7 +++++++ .../database/entity/OperationTemplateEntity.java | 3 +++ 2 files changed, 10 insertions(+) diff --git a/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/OperationTemplateRepository.java b/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/OperationTemplateRepository.java index ba62ab4fc..ea0b6a013 100644 --- a/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/OperationTemplateRepository.java +++ b/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/OperationTemplateRepository.java @@ -32,6 +32,13 @@ @Repository public interface OperationTemplateRepository extends CrudRepository { + /** + * Find an operation template by the given language and operation type. + * + * @param language language + * @param placeholder operation type + * @return operation template or empty + */ Optional findFirstByLanguageAndPlaceholder(String language, String placeholder); } diff --git a/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/entity/OperationTemplateEntity.java b/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/entity/OperationTemplateEntity.java index 1470c8b57..b3ea39fcb 100644 --- a/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/entity/OperationTemplateEntity.java +++ b/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/entity/OperationTemplateEntity.java @@ -45,6 +45,9 @@ public class OperationTemplateEntity implements Serializable { @Column(name = "id", nullable = false) private Long id; + /** + * Operation type of operation at PowerAuth server. + */ @Column(name = "placeholder", nullable = false) private String placeholder; From 5fbd2e3590018e801ce3855ccbc844e2f7b34369 Mon Sep 17 00:00:00 2001 From: Lubos Racansky Date: Wed, 11 Jan 2023 06:49:06 +0100 Subject: [PATCH 2/2] Improve javadoc --- .../database/entity/OperationTemplateEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/entity/OperationTemplateEntity.java b/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/entity/OperationTemplateEntity.java index b3ea39fcb..199d1da54 100644 --- a/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/entity/OperationTemplateEntity.java +++ b/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/database/entity/OperationTemplateEntity.java @@ -46,7 +46,7 @@ public class OperationTemplateEntity implements Serializable { private Long id; /** - * Operation type of operation at PowerAuth server. + * Operation type at PowerAuth server. */ @Column(name = "placeholder", nullable = false) private String placeholder;