blob: a477444dbca2c1ae3843351981e00b6ce250a045 [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.eclipse.osbp.dsl.entity.xtext.tests.model.testcarstore2.dtos.services;
import org.eclipse.osbp.dsl.dto.lib.services.impl.AbstractDTOServiceWithMutablePersistence;
import org.eclipse.osbp.dsl.entity.xtext.tests.model.testcarstore2.UsedCar;
import org.eclipse.osbp.dsl.entity.xtext.tests.model.testcarstore2.dtos.UsedCarDto;
@SuppressWarnings("all")
public class UsedCarService extends AbstractDTOServiceWithMutablePersistence<UsedCarDto, UsedCar> {
public UsedCarService() {
// set the default persistence ID
setPersistenceId("TBD");
}
public Class<UsedCarDto> getDtoClass() {
return UsedCarDto.class;
}
public Class<UsedCar> getEntityClass() {
return UsedCar.class;
}
public Object getId(final UsedCarDto dto) {
return dto.getId();
}
}