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