File tree Expand file tree Collapse file tree 8 files changed +47
-49
lines changed
src/main/java/org/woehlke/simpleworklist Expand file tree Collapse file tree 8 files changed +47
-49
lines changed Original file line number Diff line number Diff line change 11org.woehlke.simpleworklist.oodm.enumerations.Language: private static final long serialVersionUID = 0L;
2- org.woehlke.simpleworklist.oodm.enumerations .TaskEnergy: private static final long serialVersionUID = 0L;
2+ org.woehlke.simpleworklist.task .TaskEnergy: private static final long serialVersionUID = 0L;
33org.woehlke.simpleworklist.task.TaskState: private static final long serialVersionUID = 0L;
44org.woehlke.simpleworklist.task.TaskTime: private static final long serialVersionUID = 0L;
55org.woehlke.simpleworklist.oodm.enumerations.UserPasswordRecoveryStatus: private static final long serialVersionUID = 0L;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ set CLASSPATH=%MY_CLASSPATH_APP%;%MY_CLASSPATH_DEPS%
1616echo %CLASSPATH%
1717cd target\classes
1818serialver org.woehlke.simpleworklist.oodm.enumerations.Language > ..\..\etc\serialversions.txt
19- serialver org.woehlke.simpleworklist.oodm.enumerations .TaskEnergy >> ..\..\etc\serialversions.txt
19+ serialver org.woehlke.simpleworklist.task .TaskEnergy >> ..\..\etc\serialversions.txt
2020serialver org.woehlke.simpleworklist.task.TaskState >> ..\..\etc\serialversions.txt
2121serialver org.woehlke.simpleworklist.task.TaskTime >> ..\..\etc\serialversions.txt
2222serialver org.woehlke.simpleworklist.oodm.enumerations.UserPasswordRecoveryStatus >> ..\..\etc\serialversions.txt
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export SERIALVERSIONS_FILE="$PROJECT_PATH/etc/serialversions.txt"
2828echo " CLASSPATH $CLASSPATH "
2929cd $CLASSES_PATH
3030serialver org.woehlke.simpleworklist.oodm.enumerations.Language > $SERIALVERSIONS_FILE
31- serialver org.woehlke.simpleworklist.oodm.enumerations .TaskEnergy >> $SERIALVERSIONS_FILE
31+ serialver org.woehlke.simpleworklist.task .TaskEnergy >> $SERIALVERSIONS_FILE
3232serialver org.woehlke.simpleworklist.task.TaskState >> $SERIALVERSIONS_FILE
3333serialver org.woehlke.simpleworklist.task.TaskTime >> $SERIALVERSIONS_FILE
3434serialver org.woehlke.simpleworklist.oodm.enumerations.UserPasswordRecoveryStatus >> $SERIALVERSIONS_FILE
Original file line number Diff line number Diff line change 99import org .woehlke .simpleworklist .oodm .entities .Context ;
1010import org .woehlke .simpleworklist .oodm .entities .Project ;
1111import org .woehlke .simpleworklist .oodm .entities .UserAccount ;
12- import org .woehlke .simpleworklist .oodm . enumerations .TaskEnergy ;
12+ import org .woehlke .simpleworklist .task .TaskEnergy ;
1313import org .woehlke .simpleworklist .task .TaskTime ;
1414import org .woehlke .simpleworklist .oodm .services .ContextService ;
1515import org .woehlke .simpleworklist .oodm .services .ProjectService ;
Original file line number Diff line number Diff line change 1919import org .woehlke .simpleworklist .oodm .entities .UserAccount ;
2020import org .woehlke .simpleworklist .oodm .entities .impl .AuditModel ;
2121import org .woehlke .simpleworklist .oodm .entities .impl .ComparableById ;
22- import org .woehlke .simpleworklist .oodm .enumerations .TaskEnergy ;
2322
2423
2524@ Entity
Original file line number Diff line number Diff line change 1616import org .woehlke .simpleworklist .common .AbstractController ;
1717import org .woehlke .simpleworklist .taskstate .TaskMoveService ;
1818import org .woehlke .simpleworklist .oodm .entities .Context ;
19- import org .woehlke .simpleworklist .oodm .enumerations .TaskEnergy ;
2019import org .woehlke .simpleworklist .oodm .entities .Project ;
2120import org .woehlke .simpleworklist .oodm .entities .UserAccount ;
2221import org .woehlke .simpleworklist .model .beans .Breadcrumb ;
Original file line number Diff line number Diff line change 1- package org .woehlke .simpleworklist .oodm . enumerations ;
2-
3- import javax .persistence .Enumerated ;
4- import java .io .Serializable ;
5- import java .util .Arrays ;
6- import java .util .List ;
7-
8- /**
9- * Created by tw on 08.03.16.
10- */
11- public enum TaskEnergy implements Serializable {
12-
13- @ Enumerated
14- LOW ,
15-
16- @ Enumerated
17- MEDIUM ,
18-
19- @ Enumerated
20- HIGH ,
21-
22- @ Enumerated
23- NONE ;
24-
25- public int getId (){
26- return this .ordinal ();
27- }
28-
29- public String getValue (){
30- return this .name ();
31- }
32-
33- public String getCode (){
34- return "enum." +this .getClass ().getSimpleName ().toLowerCase () + "." + this .name ().toLowerCase ();
35- }
36-
37- public static List <TaskEnergy > list () {
38- return Arrays .asList (values ());
39- }
40-
41- private static final long serialVersionUID = 0L ;
42- }
1+ package org .woehlke .simpleworklist .task ;
2+
3+ import javax .persistence .Enumerated ;
4+ import java .io .Serializable ;
5+ import java .util .Arrays ;
6+ import java .util .List ;
7+
8+ /**
9+ * Created by tw on 08.03.16.
10+ */
11+ public enum TaskEnergy implements Serializable {
12+
13+ @ Enumerated
14+ LOW ,
15+
16+ @ Enumerated
17+ MEDIUM ,
18+
19+ @ Enumerated
20+ HIGH ,
21+
22+ @ Enumerated
23+ NONE ;
24+
25+ public int getId (){
26+ return this .ordinal ();
27+ }
28+
29+ public String getValue (){
30+ return this .name ();
31+ }
32+
33+ public String getCode (){
34+ return "enum." +this .getClass ().getSimpleName ().toLowerCase () + "." + this .name ().toLowerCase ();
35+ }
36+
37+ public static List <TaskEnergy > list () {
38+ return Arrays .asList (values ());
39+ }
40+
41+ private static final long serialVersionUID = 0L ;
42+ }
Original file line number Diff line number Diff line change 88import org .woehlke .simpleworklist .oodm .entities .Context ;
99import org .woehlke .simpleworklist .oodm .entities .Project ;
1010import org .woehlke .simpleworklist .task .Task ;
11- import org .woehlke .simpleworklist .oodm . enumerations .TaskEnergy ;
11+ import org .woehlke .simpleworklist .task .TaskEnergy ;
1212import org .woehlke .simpleworklist .task .TaskState ;
1313import org .woehlke .simpleworklist .oodm .entities .UserAccount ;
1414import org .woehlke .simpleworklist .task .TaskTime ;
You can’t perform that action at this time.
0 commit comments