blob: c39d7faf4f155e974e975e3347e8862719b2913c [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.entitydsl.documentation.demo.dtos.services;
import org.eclipse.osbp.dsl.dto.lib.services.impl.AbstractDTOServiceWithMutablePersistence;
import org.eclipse.osbp.entitydsl.documentation.demo.Bar;
import org.eclipse.osbp.entitydsl.documentation.demo.dtos.BarDto;
@SuppressWarnings("all")
public class BarService extends AbstractDTOServiceWithMutablePersistence<BarDto, Bar> {
public BarService() {
// set the default persistence ID
setPersistenceId("TBD");
}
public Class<BarDto> getDtoClass() {
return BarDto.class;
}
public Class<Bar> getEntityClass() {
return Bar.class;
}
public Object getId(final BarDto dto) {
return dto.getId();
}
}