File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
todolist-core/src/main/java/io/github/todolist/core Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change
1
+ package io .github .todolist .core ;
2
+
3
+ import java .io .File ;
4
+
5
+ public class Statics {
6
+
7
+ public static final String JAVA_HOME = System .getenv ("JAVA_HOME" );
8
+ public static final String NATIVE2ASCII = (JAVA_HOME != null ? JAVA_HOME : "./.jdk" ) + File .separator + "bin" + File .separator + "native2ascii" ;
9
+ }
Original file line number Diff line number Diff line change 44
44
import javax .persistence .Temporal ;
45
45
import javax .persistence .TemporalType ;
46
46
47
+ import static io .github .todolist .core .Statics .NATIVE2ASCII ;
48
+
47
49
/**
48
50
* Todo entity.
49
51
*
56
58
@ NamedQuery (name = "findTodosByTitle" , query = "SELECT t FROM Todo t where t.userId = ?1 and upper(t.title) like ?2 order by t.dueDate" )
57
59
})
58
60
public class Todo implements Serializable {
59
-
60
- // If the JAVA_HOME isn't set, use the Heroku Java location
61
- static final String NATIVE2ASCII = System .getProperty ("JAVA_HOME" , "./.jdk" ) + File .separator + "bin" + File .separator + "native2ascii" ;
61
+
62
62
@ Id
63
63
@ GeneratedValue
64
64
private long id ;
You can’t perform that action at this time.
0 commit comments