package pl.openrest.dto.mapper;

import pl.openrest.dto.registry.DtoInformation;

/**
 * This interface should be implemented if there is a need for more control over
 * creation of entity from dto, than simply mapping field by field as in
 * {@link DefaultCreateAndUpdateMapper}
 * 
 * @author Szymon Konicki
 *
 * @param <R>
 *            Entity type
 * @param <P>
 *            Dto type
 */
public interface CreateMapper<R, P> {

	R create(P from);

}

package pl.openrest.dto.mapper;


/**
 * This interface should be implemented if there is a need for more control over
 * creation of entity from dto, than simply mapping field by field as in
 * {@link DefaultCreateAndUpdateMapper}
 * 
 * @author Szymon Konicki
 *
 * @param <R>
 *            Entity type
 * @param <P>
 *            Dto type
 */
public interface CreateMapper<R, P> {

	R create(P from);

}

Remove DtoInformation import from CreateMapper