Uses of Record Class
com.example.springrest.dto.ProductRequest
Packages that use ProductRequest
Package
Description
REST controllers that define the public API of the application.
Provides MapStruct-based mappers for converting between
domain entities and Data Transfer Objects (DTOs).
-
Uses of ProductRequest in com.example.springrest.controllers
Methods in com.example.springrest.controllers with parameters of type ProductRequestModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<ProductResponse> ProductController.create
(@Valid ProductRequest request) Creates a new product.org.springframework.http.ResponseEntity
<ProductResponse> ProductController.update
(@Min(value=1L,message="ID must be >= 1") Long id, @Valid ProductRequest request) Replaces a product’s name and price. -
Uses of ProductRequest in com.example.springrest.mappers
Methods in com.example.springrest.mappers with parameters of type ProductRequestModifier and TypeMethodDescriptionProductMapper.toEntity
(ProductRequest dto) Creates a newProduct
from an incoming request.void
ProductMapper.updateEntity
(Product target, ProductRequest source) Updates an existingProduct
in-place from aProductRequest
.