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