Update CryptoPriceModel.java
This commit is contained in:
parent
0b555a478e
commit
3a4157c697
@ -13,7 +13,7 @@ public class CryptoPriceModel {
|
|||||||
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ID", nullable = false)
|
@Column(name = "ID", nullable = false)
|
||||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private int id;
|
private int id;
|
||||||
|
|
||||||
@Column(name = "timestamp", nullable = false)
|
@Column(name = "timestamp", nullable = false)
|
||||||
@ -45,4 +45,4 @@ public class CryptoPriceModel {
|
|||||||
public String getFormattedDate() {
|
public String getFormattedDate() {
|
||||||
return getTimestamp().toString();
|
return getTimestamp().toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user