blob: c6d7bb981e6fb0bc341d56ebd4aee8587efb8416 [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.osbp.mysmartshop.dtos.service;
import org.eclipse.osbp.dsl.dto.lib.services.impl.AbstractDTOServiceWithMutablePersistence;
import org.osbp.mysmartshop.dtos.DepartmentDto;
import org.osbp.mysmartshop.entities.Department;
@SuppressWarnings("all")
public class DepartmentDtoService extends AbstractDTOServiceWithMutablePersistence<DepartmentDto, Department> {
public DepartmentDtoService() {
// set the default persistence ID
setPersistenceId("testCarstore");
}
public Class<DepartmentDto> getDtoClass() {
return DepartmentDto.class;
}
public Class<Department> getEntityClass() {
return Department.class;
}
public Object getId(final DepartmentDto dto) {
return dto.getId();
}
}