From c7e0a388a8cfe22cb5b31adda7e62f533956732a Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 25 Sep 2015 14:25:48 +0200 Subject: [PATCH] =?utf8?q?Added=20enumeration=20annotation=20Signed-off-by?= =?utf8?q?:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/org/mxchange/jcore/model/contact/UserContact.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/mxchange/jcore/model/contact/UserContact.java b/src/org/mxchange/jcore/model/contact/UserContact.java index fc83b27..7f57afa 100644 --- a/src/org/mxchange/jcore/model/contact/UserContact.java +++ b/src/org/mxchange/jcore/model/contact/UserContact.java @@ -23,6 +23,8 @@ import javax.annotation.PostConstruct; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; +import javax.persistence.EnumType; +import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @@ -133,6 +135,7 @@ public class UserContact implements Contact, Comparable { */ @Basic (optional = false) @Column (name = "gender", nullable = false) + @Enumerated(EnumType.STRING) private Gender gender; /** -- 2.39.5