fix enum dtos
parent
8449c028f9
commit
51164ce11c
@ -0,0 +1,19 @@
|
|||||||
|
package ru.ulstu.paper.model;
|
||||||
|
|
||||||
|
public class PaperStatusDto {
|
||||||
|
private final String id;
|
||||||
|
private final String name;
|
||||||
|
|
||||||
|
public PaperStatusDto(Paper.PaperStatus status) {
|
||||||
|
this.id = status.name();
|
||||||
|
this.name = status.getStatusName();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package ru.ulstu.paper.model;
|
||||||
|
|
||||||
|
public class PaperTypeDto {
|
||||||
|
private final String id;
|
||||||
|
private final String name;
|
||||||
|
|
||||||
|
public PaperTypeDto(Paper.PaperType type) {
|
||||||
|
this.id = type.name();
|
||||||
|
this.name = type.getTypeName();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue