From 97fa57dda61f80ce75b06ceae1b67251fa31a813 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 2 Oct 2015 12:30:14 +0200 Subject: [PATCH] =?utf8?q?changed=20ZIP=20code=20to=20Integer=20(enougth)?= =?utf8?q?=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/org/mxchange/jcontacts/contact/Contact.java | 4 ++-- src/org/mxchange/jcontacts/contact/UserContact.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/org/mxchange/jcontacts/contact/Contact.java b/src/org/mxchange/jcontacts/contact/Contact.java index 6c1f583..89a269c 100644 --- a/src/org/mxchange/jcontacts/contact/Contact.java +++ b/src/org/mxchange/jcontacts/contact/Contact.java @@ -285,14 +285,14 @@ public interface Contact extends Serializable { *

* @return the zipCode */ - public Long getZipCode (); + public Integer getZipCode (); /** * ZIP code *

* @param zipCode the zipCode to set */ - public void setZipCode (final Long zipCode); + public void setZipCode (final Integer zipCode); /** * Checks whether the contact is user's own data diff --git a/src/org/mxchange/jcontacts/contact/UserContact.java b/src/org/mxchange/jcontacts/contact/UserContact.java index 4755456..0225e98 100644 --- a/src/org/mxchange/jcontacts/contact/UserContact.java +++ b/src/org/mxchange/jcontacts/contact/UserContact.java @@ -172,7 +172,7 @@ public class UserContact implements Contact, Comparable { * ZIP code */ @Column (name = "zip_code", nullable = false, length = 6) - private Long zipCode; + private Integer zipCode; /** * Constructor for gender and names @@ -448,12 +448,12 @@ public class UserContact implements Contact, Comparable { } @Override - public Long getZipCode () { + public Integer getZipCode () { return this.zipCode; } @Override - public void setZipCode (final Long zipCode) { + public void setZipCode (final Integer zipCode) { this.zipCode = zipCode; } -- 2.39.5