This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git

commit 009abed8e4213a6514136c553d36c7b1321d1042
Author: Dan Haywood <[email protected]>
AuthorDate: Sat May 25 16:18:03 2024 +0100

    Adds EmailAddress value type
---
 .../modules/petowner/value/EmailAddress.java          | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git 
a/module-petowner/src/main/java/domainapp/modules/petowner/value/EmailAddress.java
 
b/module-petowner/src/main/java/domainapp/modules/petowner/value/EmailAddress.java
new file mode 100644
index 0000000..c23f5b4
--- /dev/null
+++ 
b/module-petowner/src/main/java/domainapp/modules/petowner/value/EmailAddress.java
@@ -0,0 +1,19 @@
+package domainapp.modules.petowner.value;
+
+import lombok.AccessLevel;
+
+import javax.persistence.Column;
+
[email protected]
[email protected]
[email protected]
[email protected](AccessLevel.PRIVATE)
[email protected]
[email protected](staticName = "of")
[email protected]
+public class EmailAddress {
+    public static final int MAX_LEN = 100;
+
+    @Column(length = EmailAddress.MAX_LEN, nullable = true, name = 
"emailAddress")
+    String emailAddress;
+}
\ No newline at end of file

Reply via email to