From: Roland Haeder Date: Mon, 15 Feb 2016 15:11:46 +0000 (+0100) Subject: sorted members X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ff334c01370d6ebf5a44d548c47b579edd34a8da;p=jcontacts-core.git sorted members --- diff --git a/src/org/mxchange/jcontacts/contact/UserContact.java b/src/org/mxchange/jcontacts/contact/UserContact.java index c9fa3ec..2f4aee8 100644 --- a/src/org/mxchange/jcontacts/contact/UserContact.java +++ b/src/org/mxchange/jcontacts/contact/UserContact.java @@ -102,14 +102,6 @@ public class UserContact implements Contact, Comparable { @Column (name = "contact_comment") private String contactComment; - /** - * Id number - */ - @Id - @GeneratedValue (strategy = GenerationType.IDENTITY) - @Column (name = "contact_id", length = 20, nullable = false, updatable = false) - private Long contactId; - /** * Country code */ @@ -166,6 +158,14 @@ public class UserContact implements Contact, Comparable { @Column (name = "contact_house_number", length = 5, nullable = false) private Short contactHouseNumber; + /** + * Id number + */ + @Id + @GeneratedValue (strategy = GenerationType.IDENTITY) + @Column (name = "contact_id", length = 20, nullable = false, updatable = false) + private Long contactId; + /** * Flag whether this contact is user's own data */ @@ -334,16 +334,6 @@ public class UserContact implements Contact, Comparable { this.contactComment = contactComment; } - @Override - public Long getContactId () { - return this.contactId; - } - - @Override - public void setContactId (final Long contactId) { - this.contactId = contactId; - } - @Override public Country getContactCountry () { return this.contactCountry; @@ -425,6 +415,15 @@ public class UserContact implements Contact, Comparable { this.contactHouseNumber = contactHouseNumber; } + @Override + public Long getContactId () { + return this.contactId; + } + @Override + public void setContactId (final Long contactId) { + this.contactId = contactId; + } + @Override public void setContactOwnContact (final Boolean contactOwnContact) { this.contactOwnContact = contactOwnContact;