Annotation Interface ApiFind
Binds a controller interface or method to a specific JPA entity and its
primary-key type, enabling the
proxy-api-controller framework to
resolve and execute the correct JpaService
at runtime.
When placed on a type (interface) annotated with ApiFindController,
all methods of that interface inherit the entity binding unless they declare
their own @ApiFind at method level.
Example
@ApiFindController
@ApiFind(entity = Product.class, id = Long.class)
public interface ProductController {
@GetMapping("/products")
List<ProductDto> search(@RequestBody ProductFilter filter);
}
- Author:
- Francesco Baldi
- See Also:
-
Required Element Summary
Required Elements