Skip to content
Snippets Groups Projects
Commit 33cb5df1 authored by stendler's avatar stendler
Browse files

timestamp instead of just date & add memstone attributes

parent 0ced5544
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,8 @@ import javax.persistence.Embedded; ...@@ -6,7 +6,8 @@ import javax.persistence.Embedded;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;
import javax.persistence.Id; import javax.persistence.Id;
import java.time.LocalDate; import java.awt.*;
import java.time.LocalDateTime;
@Data @Data
@Entity @Entity
...@@ -15,7 +16,7 @@ public class Memory { ...@@ -15,7 +16,7 @@ public class Memory {
@Id @Id
@GeneratedValue() @GeneratedValue()
private long id; private long id;
private final LocalDate creationDate; private final LocalDateTime creationDate;
private boolean published; private boolean published;
// user? // user?
...@@ -25,11 +26,17 @@ public class Memory { ...@@ -25,11 +26,17 @@ public class Memory {
private byte[] voice; private byte[] voice;
private String voiceText; private String voiceText;
// enum tone
// enum weather
private byte[] image; private byte[] image;
private String note; // optional Text private String note; // optional Text
// memstone
private byte[] mesh;
private Color color;
public Memory() { public Memory() {
this.creationDate = LocalDate.now(); this.creationDate = LocalDateTime.now();
this.published = false; this.published = false;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment