From a0d2c0c322d140424078c0a812fc294bdab54c67 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 24 Sep 2015 11:27:01 +0200 Subject: [PATCH] =?utf8?q?java.sql.Timestamp=20is=20sadly=20not=20availabl?= =?utf8?q?e=20in=20JPA=20...=20:-(=20Losing=20type-safety=20here=20...=20S?= =?utf8?q?igned-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcore.jar | Bin 31627 -> 31604 bytes .../jshopcore/model/customer/Customer.java | 9 ++++----- .../model/customer/ShopCustomer.java | 13 ++++++------- .../jshopcore/model/order/Orderable.java | 5 ++--- .../jshopcore/model/order/ShopOrder.java | 7 +++---- 5 files changed, 15 insertions(+), 19 deletions(-) diff --git a/lib/jcore.jar b/lib/jcore.jar index d986c5ce567c99f0242ca974b739751489940945..517bf913c2095394e24e3a902b15b76c286cb704 100644 GIT binary patch delta 6993 zcmaJ`33yc175?u`lK1A#3t7lw5+FnZ*%uN*7Dylqgb)b35I`V=A%?^R!h|I#LjV_4 zP`GMcY6}__Ev_SAtyQR$x>Rd7TbCkgt5xf6wVzenbKZMNX6Bo5zVF?8-hF5J@44sR zd+wcUzZPG9B_iiH+QT$J1sYeB9gNJ3nZ2T{{+YP8JK6y76DKG3Bp$rDIB`;>R@>uh zal6*#)oiaAJ2AgBzi{>B(t{6Y*je~tU(9xirq z(XUalTSE@^Ftu016}XZ=T*bxJ)Fz*^FUZKn5fyhb$6X2rRNSp09rviXmnDyK`+X|z zSG?6>O{#qGf;9P8eVOdYij!3lvEKa1R-2NGXb9waZ;9%Qh|G8#nU5nY`vf9mvt??+ z8j&M+C5&gx-lGW~n?YnJ9TW!fRPs9}F)+#-X0$9%Yc_dKj2mYXZ;YR368V{DP3Et& zR+z++oL3?Ysr;fE5y|e@d)#xysx)Agyu7$3uTjH1e5l}GDn8O+!^axN;}a();1dm> z;xi4O;|qTMl0L|{i}w~QB3cnK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|7ytkO diff --git a/src/org/mxchange/jshopcore/model/customer/Customer.java b/src/org/mxchange/jshopcore/model/customer/Customer.java index 559c112..d2b4f76 100644 --- a/src/org/mxchange/jshopcore/model/customer/Customer.java +++ b/src/org/mxchange/jshopcore/model/customer/Customer.java @@ -17,7 +17,6 @@ package org.mxchange.jshopcore.model.customer; import java.io.Serializable; -import java.sql.Timestamp; import org.mxchange.jcore.model.contact.Contact; /** @@ -67,28 +66,28 @@ public interface Customer extends Serializable { * * @return "created" timestamp */ - public Timestamp getCustomerCreated (); + public String getCustomerCreated (); /** * Setter for "created" timestamp * * @param customerCreated "created" timestamp */ - public void setCustomerCreated (final Timestamp customerCreated); + public void setCustomerCreated (final String customerCreated); /** * Getter for "locked" timestamp * * @return "locked" timestamp */ - public Timestamp getCustomerLocked (); + public String getCustomerLocked (); /** * Getter for "locked" timestamp * * @param customerLocked "locked" timestamp */ - public void setCustomerLocked (final Timestamp customerLocked); + public void setCustomerLocked (final String customerLocked); /** * Setter for customer number diff --git a/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java b/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java index bf3c2b5..954988a 100644 --- a/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java +++ b/src/org/mxchange/jshopcore/model/customer/ShopCustomer.java @@ -16,7 +16,6 @@ */ package org.mxchange.jshopcore.model.customer; -import java.sql.Timestamp; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; @@ -73,14 +72,14 @@ public class ShopCustomer implements Customer { @Basic(optional = false) @Temporal (TemporalType.TIMESTAMP) @Column (name = "customer_created", nullable = false) - private Timestamp customerCreated; + private String customerCreated; /** * "locked" timestamp */ @Temporal (TemporalType.TIMESTAMP) @Column (name = "customer_locked") - private Timestamp customerLocked; + private String customerLocked; /** * Customer number, this is different to the database entry customerId. @@ -135,22 +134,22 @@ public class ShopCustomer implements Customer { } @Override - public Timestamp getCustomerCreated () { + public String getCustomerCreated () { return this.customerCreated; } @Override - public void setCustomerCreated (final Timestamp customerCreated) { + public void setCustomerCreated (final String customerCreated) { this.customerCreated = customerCreated; } @Override - public Timestamp getCustomerLocked () { + public String getCustomerLocked () { return this.customerLocked; } @Override - public void setCustomerLocked (final Timestamp customerLocked) { + public void setCustomerLocked (final String customerLocked) { this.customerLocked = customerLocked; } diff --git a/src/org/mxchange/jshopcore/model/order/Orderable.java b/src/org/mxchange/jshopcore/model/order/Orderable.java index 381c43e..fbd7136 100644 --- a/src/org/mxchange/jshopcore/model/order/Orderable.java +++ b/src/org/mxchange/jshopcore/model/order/Orderable.java @@ -17,7 +17,6 @@ package org.mxchange.jshopcore.model.order; import java.io.Serializable; -import java.sql.Timestamp; import java.util.List; import org.mxchange.jshopcore.model.basket.AddableBasketItem; import org.mxchange.jshopcore.model.customer.Customer; @@ -76,14 +75,14 @@ public interface Orderable 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 list of ordered basket items diff --git a/src/org/mxchange/jshopcore/model/order/ShopOrder.java b/src/org/mxchange/jshopcore/model/order/ShopOrder.java index 814d8ab..d2e8bc6 100644 --- a/src/org/mxchange/jshopcore/model/order/ShopOrder.java +++ b/src/org/mxchange/jshopcore/model/order/ShopOrder.java @@ -16,7 +16,6 @@ */ package org.mxchange.jshopcore.model.order; -import java.sql.Timestamp; import java.util.List; import javax.persistence.Basic; import javax.persistence.Column; @@ -75,7 +74,7 @@ public class ShopOrder implements Orderable { @Basic (optional = false) @Temporal (TemporalType.TIMESTAMP) @Column (nullable = false) - private Timestamp created; + private String created; /** * Item list, don't save this @@ -94,12 +93,12 @@ public class ShopOrder implements Orderable { } @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; } -- 2.39.5