From: Roland Haeder Date: Fri, 2 Oct 2015 10:30:14 +0000 (+0200) Subject: changed ZIP code to Integer (enougth) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=97fa57dda61f80ce75b06ceae1b67251fa31a813;p=jcontacts-core.git changed ZIP code to Integer (enougth) Signed-off-by:Roland Häder --- 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; }