| package org.osbp.tests.dtos.service; |
| |
| import org.eclipse.osbp.dsl.dto.lib.services.impl.AbstractDTOServiceWithMutablePersistence; |
| import org.osbp.tests.dtos.CashSlipDto; |
| import org.osbp.tests.entities.CashSlip; |
| |
| @SuppressWarnings("all") |
| public class CashSlipDtoService extends AbstractDTOServiceWithMutablePersistence<CashSlipDto, CashSlip> { |
| public CashSlipDtoService() { |
| // set the default persistence ID |
| setPersistenceId("businessdata"); |
| } |
| |
| public Class<CashSlipDto> getDtoClass() { |
| return CashSlipDto.class; |
| } |
| |
| public Class<CashSlip> getEntityClass() { |
| return CashSlip.class; |
| } |
| |
| public Object getId(final CashSlipDto dto) { |
| return dto.getId(); |
| } |
| } |