From: Roland Haeder Date: Fri, 7 Aug 2015 13:15:07 +0000 (+0200) Subject: It has to be Long, with long you get zeros in forms X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=727f1eaa76befb29025efd88abf4124c6882ddee;p=jcore.git It has to be Long, with long you get zeros in forms Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcore/contact/BaseContact.java b/src/org/mxchange/jcore/contact/BaseContact.java index b817a59..75f51fd 100644 --- a/src/org/mxchange/jcore/contact/BaseContact.java +++ b/src/org/mxchange/jcore/contact/BaseContact.java @@ -85,7 +85,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { /** * House number */ - private long houseNumber; + private Long houseNumber; /** * Flag whether this contact is user's own data @@ -110,7 +110,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { /** * ZIP code */ - private long zipCode; + private Long zipCode; /** * No instances can be created of this class @@ -386,7 +386,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { * @return the houseNumber */ @Override - public long getHouseNumber () { + public Long getHouseNumber () { return this.houseNumber; } @@ -396,7 +396,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { * @param houseNumber the houseNumber to set */ @Override - public final void setHouseNumber (final long houseNumber) { + public final void setHouseNumber (final Long houseNumber) { this.houseNumber = houseNumber; } @@ -523,7 +523,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { * @return the zipCode */ @Override - public final long getZipCode () { + public final Long getZipCode () { return this.zipCode; } @@ -533,7 +533,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { * @param zipCode the zipCode to set */ @Override - public final void setZipCode (final long zipCode) { + public final void setZipCode (final Long zipCode) { this.zipCode = zipCode; } diff --git a/src/org/mxchange/jcore/contact/Contact.java b/src/org/mxchange/jcore/contact/Contact.java index f0f3a68..85896f5 100644 --- a/src/org/mxchange/jcore/contact/Contact.java +++ b/src/org/mxchange/jcore/contact/Contact.java @@ -116,28 +116,28 @@ public interface Contact extends FrameworkInterface { * * @return the houseNumber */ - public long getHouseNumber (); + public Long getHouseNumber (); /** * House number * * @param houseNumber the houseNumber to set */ - public void setHouseNumber (final long houseNumber); + public void setHouseNumber (final Long houseNumber); /** * ZIP code * * @return the zipCode */ - public long getZipCode (); + public Long getZipCode (); /** * ZIP code * * @param zipCode the zipCode to set */ - public void setZipCode (final long zipCode); + public void setZipCode (final Long zipCode); /** * City