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