Update CryptoPriceModel.java

This commit is contained in:
Andy Sotheran 2020-03-02 19:54:30 +00:00 committed by GitHub
parent 0b555a478e
commit 3a4157c697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}
}