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