blob: ef8490def0d0afd02aa7965c85d9761df7352a3b [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf), Loetz GmbH&Co.KG (Heidelberg)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.osbp.mysmartshop.dtos.service;
import org.eclipse.osbp.dsl.dto.lib.services.impl.AbstractDTOServiceWithMutablePersistence;
import org.osbp.mysmartshop.dtos.McustomerDto;
import org.osbp.mysmartshop.entities.Mcustomer;
@SuppressWarnings("all")
public class McustomerDtoService extends AbstractDTOServiceWithMutablePersistence<McustomerDto, Mcustomer> {
public McustomerDtoService() {
// set the default persistence ID
setPersistenceId("testCarstore");
}
public Class<McustomerDto> getDtoClass() {
return McustomerDto.class;
}
public Class<Mcustomer> getEntityClass() {
return Mcustomer.class;
}
public Object getId(final McustomerDto dto) {
return dto.getId();
}
}