From 3a4157c69729038048479662a74284944efb0165 Mon Sep 17 00:00:00 2001 From: Andy Sotheran Date: Mon, 2 Mar 2020 19:54:30 +0000 Subject: [PATCH] Update CryptoPriceModel.java --- .../me/graphql/pricing/models/entities/CryptoPriceModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cryptosky/me/graphql/pricing/models/entities/CryptoPriceModel.java b/src/main/java/cryptosky/me/graphql/pricing/models/entities/CryptoPriceModel.java index 96926aa..6f2a3ee 100644 --- a/src/main/java/cryptosky/me/graphql/pricing/models/entities/CryptoPriceModel.java +++ b/src/main/java/cryptosky/me/graphql/pricing/models/entities/CryptoPriceModel.java @@ -13,7 +13,7 @@ public class CryptoPriceModel { @Id @Column(name = "ID", nullable = false) - @GeneratedValue(strategy = GenerationType.AUTO) + @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @Column(name = "timestamp", nullable = false) @@ -45,4 +45,4 @@ public class CryptoPriceModel { public String getFormattedDate() { return getTimestamp().toString(); } -} \ No newline at end of file +}