]> git.mxchange.org Git - jcore.git/commitdiff
java.sql.Timestamp is sadly not available in JPA ... :-( Losing type-safety here ...
authorRoland Haeder <roland@mxchange.org>
Thu, 24 Sep 2015 09:26:54 +0000 (11:26 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 24 Sep 2015 09:26:54 +0000 (11:26 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/model/contact/BaseContact.java
src/org/mxchange/jcore/model/contact/Contact.java

index 7ec512f003634bd1a53d354daf6b17deb4067a7d..530a64f2e8c5ab78ff69bb51fd14981638dc142b 100644 (file)
@@ -16,7 +16,6 @@
  */
 package org.mxchange.jcore.model.contact;
 
-import java.sql.Timestamp;
 import java.util.Date;
 import java.util.Objects;
 import javax.annotation.PostConstruct;
@@ -92,7 +91,7 @@ public abstract class BaseContact implements Contact, Comparable<Contact> {
        @Basic(optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column(nullable = false)
-       private Timestamp created;
+       private String created;
 
        /**
         * Email address
@@ -162,7 +161,7 @@ public abstract class BaseContact implements Contact, Comparable<Contact> {
         * When the contact has been updated
         */
        @Temporal (TemporalType.TIMESTAMP)
-       private Timestamp updated;
+       private String updated;
 
        /**
         * ZIP code
@@ -314,12 +313,12 @@ public abstract class BaseContact implements Contact, Comparable<Contact> {
        }
 
        @Override
-       public Timestamp getCreated () {
+       public String getCreated () {
                return this.created;
        }
 
        @Override
-       public void setCreated (final Timestamp created) {
+       public void setCreated (final String created) {
                this.created = created;
        }
 
@@ -420,12 +419,12 @@ public abstract class BaseContact implements Contact, Comparable<Contact> {
        }
 
        @Override
-       public Timestamp getUpdated () {
+       public String getUpdated () {
                return this.updated;
        }
 
        @Override
-       public void setUpdated (final Timestamp updated) {
+       public void setUpdated (final String updated) {
                this.updated = updated;
        }
 
index 19a5bbd0a8c3f7c5b109ed9650a97aaae5a15e26..f41d833a0533b750b51ff5e955b48ae2b93085cf 100644 (file)
@@ -17,7 +17,6 @@
 package org.mxchange.jcore.model.contact;
 
 import java.io.Serializable;
-import java.sql.Timestamp;
 import java.util.Date;
 import org.mxchange.jcore.model.contact.gender.Gender;
 
@@ -276,26 +275,26 @@ public interface Contact extends Serializable {
         *
         * @return "created" timestamp
         */
-       public Timestamp getCreated ();
+       public String getCreated ();
 
        /**
         * Setter for "created" timestamp
         *
         * @param created "created" timestamp
         */
-       public void setCreated (final Timestamp created);
+       public void setCreated (final String created);
 
        /**
         * Getter for "updated" timestamp
         *
         * @return "updated" timestamp
         */
-       public Timestamp getUpdated ();
+       public String getUpdated ();
 
        /**
         * Getter for "updated" timestamp
         *
         * @param updated "updated" timestamp
         */
-       public void setUpdated (final Timestamp updated);
+       public void setUpdated (final String updated);
 }