| 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 | |
import org.kuali.student.r2.common.dto.RelationshipInfo; |
| 6 | |
|
| 7 | 0 | public class RelationshipDTOAssembler< E extends RelationshipInfo, F extends RelationshipInfo> { |
| 8 | |
|
| 9 | |
|
| 10 | |
public F assemble(E fromDTO, F toDTO, ContextInfo context) { |
| 11 | |
|
| 12 | 0 | toDTO.setAttributes(fromDTO.getAttributes()); |
| 13 | 0 | toDTO.setEffectiveDate(fromDTO.getEffectiveDate()); |
| 14 | 0 | toDTO.setExpirationDate(fromDTO.getExpirationDate()); |
| 15 | 0 | toDTO.setId(fromDTO.getId()); |
| 16 | 0 | toDTO.setMeta(fromDTO.getMeta()); |
| 17 | 0 | toDTO.setStateKey(fromDTO.getStateKey()); |
| 18 | 0 | toDTO.setTypeKey(fromDTO.getTypeKey()); |
| 19 | 0 | toDTO.setId(fromDTO.getId()); |
| 20 | 0 | return toDTO; |
| 21 | |
|
| 22 | |
} |
| 23 | |
|
| 24 | |
} |