From 7f3157b7a2880b4180c6294e456ad54949b15a9d Mon Sep 17 00:00:00 2001 From: Vincent Guillet Date: Tue, 20 May 2025 13:44:10 +0200 Subject: [PATCH] Add Pair annotation for custom validation of even numbers --- .../src/main/java/com/humanbooster/annotation/Pair.java | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 hibernate-project/src/main/java/com/humanbooster/annotation/Pair.java diff --git a/hibernate-project/src/main/java/com/humanbooster/annotation/Pair.java b/hibernate-project/src/main/java/com/humanbooster/annotation/Pair.java new file mode 100644 index 0000000..ed1f41d --- /dev/null +++ b/hibernate-project/src/main/java/com/humanbooster/annotation/Pair.java @@ -0,0 +1,6 @@ +package com.humanbooster.annotation; + +public @interface Pair { + + String message() default "Le nombre doit ĂȘtre pair"; +}