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