blob: 871e984c3bd695cb6d96e25cff40ccf0ff43afe1 [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.AddressDto;
import org.osbp.mysmartshop.entities.Address;
@SuppressWarnings("all")
public class AddressDtoService extends AbstractDTOServiceWithMutablePersistence<AddressDto, Address> {
public AddressDtoService() {
// set the default persistence ID
setPersistenceId("testCarstore");
}
public Class<AddressDto> getDtoClass() {
return AddressDto.class;
}
public Class<Address> getEntityClass() {
return Address.class;
}
public Object getId(final AddressDto dto) {
return dto.getId();
}
}