Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
restmembox
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Memory Box
restmembox
Commits
33cb5df1
Commit
33cb5df1
authored
7 years ago
by
stendler
Browse files
Options
Downloads
Patches
Plain Diff
timestamp instead of just date & add memstone attributes
parent
0ced5544
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/fuberlin/imp/memorybox/restmembox/model/Memory.java
+10
-3
10 additions, 3 deletions
...va/de/fuberlin/imp/memorybox/restmembox/model/Memory.java
with
10 additions
and
3 deletions
src/main/java/de/fuberlin/imp/memorybox/restmembox/model/Memory.java
+
10
−
3
View file @
33cb5df1
...
@@ -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
LocalDate
Time
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
=
LocalDate
Time
.
now
();
this
.
published
=
false
;
this
.
published
=
false
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment