| 1 | |
package org.kuali.student.r2.common.assembler; |
| 2 | |
|
| 3 | |
import org.kuali.student.r2.common.dto.ContextInfo; |
| 4 | |
import org.kuali.student.r2.common.dto.EntityInfo; |
| 5 | |
|
| 6 | 0 | public class EntityDTOAssembler<E extends EntityInfo, F extends EntityInfo> { |
| 7 | |
|
| 8 | |
public F assemble(E fromDTO, F toDTO, ContextInfo context) { |
| 9 | |
|
| 10 | 0 | toDTO.setAttributes(fromDTO.getAttributes()); |
| 11 | 0 | toDTO.setMeta(fromDTO.getMeta()); |
| 12 | 0 | toDTO.setStateKey(fromDTO.getStateKey()); |
| 13 | 0 | toDTO.setTypeKey(fromDTO.getTypeKey()); |
| 14 | 0 | toDTO.setName(fromDTO.getName()); |
| 15 | 0 | toDTO.setDescr(fromDTO.getDescr()); |
| 16 | |
|
| 17 | 0 | return toDTO; |
| 18 | |
|
| 19 | |
} |
| 20 | |
} |