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