@Mapper(componentModel = "spring")
public interface ProductMapper {
	
	ProductMapper INSTANCE = Mappers.getMapper(ProductMapper.class);

	
	@Mappings({@Mapping(source = "price", target = "productPrice", qualifiedByName = "priceToProductPrice"),
			@Mapping(source="id", target="productId")
	})
	public abstract ProductOutput mapProductEntity2Output(ProductEntity productEntity);
	
	@Named("priceToProductPrice")
	public static  String priceToProductPrice(BigDecimal price) {
		return price.toString()+" ?";
	}

}