25 lines
625 B
Java
Executable File
25 lines
625 B
Java
Executable File
package es.recursoscatolicos.dto;
|
|
|
|
import es.recursoscatolicos.model.DifuntoPersonal;
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
public class DifuntoPersonalDTO {
|
|
|
|
private Long id;
|
|
private String nombre;
|
|
private String nacimiento;
|
|
private String defuncion;
|
|
private String nota;
|
|
|
|
public static DifuntoPersonalDTO from(DifuntoPersonal d) {
|
|
DifuntoPersonalDTO dto = new DifuntoPersonalDTO();
|
|
dto.setId(d.getId());
|
|
dto.setNombre(d.getNombre());
|
|
dto.setNacimiento(d.getNacimiento());
|
|
dto.setDefuncion(d.getDefuncion());
|
|
dto.setNota(d.getNota());
|
|
return dto;
|
|
}
|
|
}
|