TaxonomyGenusApiServiceImpl.java

/*
 * Copyright 2026 Global Crop Diversity Trust
 * Licensed under the Apache License, Version 2.0
 * See LICENSE file in project root folder or http://www.apache.org/licenses/LICENSE-2.0
 */

package org.gringlobal.api.v2.facade.impl;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import org.gringlobal.api.model.TaxonomyGenusDTO;
import org.gringlobal.api.v2.facade.TaxonomyGenusApiService;
import org.gringlobal.model.TaxonomyGenus;
import org.gringlobal.service.TaxonomyGenusCRUDService;
import org.gringlobal.service.filter.TaxonomyGenusFilter;

import org.springframework.stereotype.Service;

@Service
public class TaxonomyGenusApiServiceImpl extends APIFilteredServiceFacadeImpl<TaxonomyGenusCRUDService, TaxonomyGenusDTO, TaxonomyGenus, TaxonomyGenusFilter> implements TaxonomyGenusApiService {

	@Override
	protected @NotNull @Valid TaxonomyGenus convert(TaxonomyGenusDTO source) {
		return mapper.map(source);
	}

	@Override
	protected @NotNull @Valid TaxonomyGenusDTO convert(TaxonomyGenus source) {
		return mapper.map(source);
	}

}