[edit] Entity, pagepropertyを編集
This commit is contained in:
@@ -7,14 +7,21 @@
|
||||
package com.example.rhizome.app.infra.entity;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import com.example.rhizome.app.domain.model.Department;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Department テーブルの Entity
|
||||
*
|
||||
@@ -40,6 +47,11 @@ public class DepartmentEntity {
|
||||
@Column(name = "nm_department", nullable = false)
|
||||
private String nmDepartment;
|
||||
|
||||
|
||||
public static Department createDepartment(DepartmentEntity departmentEntity) {
|
||||
return new Department(departmentEntity.getIdDepartment(), departmentEntity.getNmDepartment());
|
||||
}
|
||||
|
||||
/**
|
||||
* DepartmentEntity(DataAccess層依存)から Department(BusinessLogic層依存型)に変換します。
|
||||
*
|
||||
|
||||
@@ -50,7 +50,7 @@ public class TransitionTargetPageNameKeyword {
|
||||
public static final String INSERT_DEPARTMENT = "/insertDepartment";
|
||||
public static final String SHOW_MENU = "/showMenu";
|
||||
public static final String SELECT_EMPLOYEE_INFO = "/selectEmployeeInfo";
|
||||
public static final String SELECT_DEPARTMENT_INFO = "/selectDepartmentInfo";
|
||||
public static final String SELECT_DEPARTMENT = "/selectDepartment";
|
||||
public static final String SELECT_EMPLOYEE_INFO_FORM_EMPTY = "/selectAll";
|
||||
public static final String SELECT_DEPARTMENT_INFO_FORM_EMPTY = "/selectAllDepartment";
|
||||
public static final String SHOW_UPDATE_EMPLOYEE = "/showUpdateEmployee";
|
||||
@@ -85,7 +85,7 @@ public class TransitionTargetPageNameKeyword {
|
||||
INSERT_DEPARTMENT,
|
||||
SHOW_MENU,
|
||||
SELECT_EMPLOYEE_INFO,
|
||||
SELECT_DEPARTMENT_INFO,
|
||||
SELECT_DEPARTMENT,
|
||||
SELECT_EMPLOYEE_INFO_FORM_EMPTY,
|
||||
SELECT_DEPARTMENT_INFO_FORM_EMPTY,
|
||||
SHOW_UPDATE_EMPLOYEE,
|
||||
|
||||
Reference in New Issue
Block a user