Uses of Class
com.proyecto.jpa.entity.Product
Packages that use Product
Package
Description
Paquete que contiene los controladores REST (Capa de Presentación).
Paquete que contiene las entidades JPA del modelo de dominio.
Paquete que contiene los repositorios JPA para acceso a datos.
Paquete que contiene la capa de servicios (lógica de negocio).
-
Uses of Product in com.proyecto.jpa.controller
Methods in com.proyecto.jpa.controller that return types with arguments of type ProductModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Product>ProductController.createProduct(@Valid Product product) Crea un nuevo producto.ProductController.getAllProducts()Obtiene todos los productos.ProductController.getAvailableProducts()Obtiene productos disponibles (con stock).org.springframework.http.ResponseEntity<Product>ProductController.getProductById(Long id) Obtiene un producto por su ID.ProductController.getProductsByCategory(Long categoryId) Obtiene productos por categoría.ProductController.getProductsByPriceRange(BigDecimal minPrice, BigDecimal maxPrice) Obtiene productos en un rango de precios.ProductController.getTopSellingProducts(int limit) Obtiene los productos más vendidos.ProductController.searchProductsByName(String name) Busca productos por nombre (búsqueda parcial).org.springframework.http.ResponseEntity<Product>ProductController.updatePrice(Long id, BigDecimal newPrice) Actualiza el precio de un producto.org.springframework.http.ResponseEntity<Product>ProductController.updateProduct(Long id, @Valid Product product) Actualiza un producto existente.org.springframework.http.ResponseEntity<Product>ProductController.updateStock(Long id, Integer newStock) Actualiza el stock de un producto.Methods in com.proyecto.jpa.controller with parameters of type ProductModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Product>ProductController.createProduct(@Valid Product product) Crea un nuevo producto.org.springframework.http.ResponseEntity<Product>ProductController.updateProduct(Long id, @Valid Product product) Actualiza un producto existente. -
Uses of Product in com.proyecto.jpa.entity
Methods in com.proyecto.jpa.entity that return ProductMethods in com.proyecto.jpa.entity that return types with arguments of type ProductMethods in com.proyecto.jpa.entity with parameters of type ProductModifier and TypeMethodDescriptionvoidCategory.addProduct(Product product) voidCategory.removeProduct(Product product) voidOrderItem.setProduct(Product product) Method parameters in com.proyecto.jpa.entity with type arguments of type ProductConstructors in com.proyecto.jpa.entity with parameters of type ProductModifierConstructorDescriptionOrderItem(Order order, Product product, Integer quantity, BigDecimal unitPrice) -
Uses of Product in com.proyecto.jpa.repository
Methods in com.proyecto.jpa.repository that return types with arguments of type ProductModifier and TypeMethodDescriptionProductRepository.findByCategoryId(Long categoryId) Busca productos por categoría (usando nombre de método).ProductRepository.findByNameContainingIgnoreCase(String name) Busca productos cuyo nombre contenga el texto dado (case-insensitive).ProductRepository.findByPriceBetween(BigDecimal minPrice, BigDecimal maxPrice) Busca productos en un rango de precios.ProductRepository.findByStockGreaterThan(Integer stock) Busca productos con stock disponible.ProductRepository.findProductsByCategoryOrderByPrice(Long categoryId) Consulta personalizada usando JPQL (Java Persistence Query Language).ProductRepository.findTopSellingProducts(int limit) Consulta nativa SQL. -
Uses of Product in com.proyecto.jpa.service
Methods in com.proyecto.jpa.service that return ProductModifier and TypeMethodDescriptionCrea o actualiza un producto.ProductService.updatePrice(Long productId, BigDecimal newPrice) Actualiza el precio de un producto.ProductService.updateStock(Long productId, Integer newStock) Actualiza el stock de un producto.Methods in com.proyecto.jpa.service that return types with arguments of type ProductModifier and TypeMethodDescriptionProductService.findAll()Obtiene todos los productos del sistema.ProductService.findAvailableProducts()Busca productos con stock disponible.ProductService.findByCategoryId(Long categoryId) Busca productos por categoría.Busca un producto por su ID.ProductService.findByNameContaining(String name) Busca productos por nombre (búsqueda parcial, case-insensitive).ProductService.findByPriceRange(BigDecimal minPrice, BigDecimal maxPrice) Busca productos en un rango de precios.ProductService.findTopSellingProducts(int limit) Obtiene los productos más vendidos.Methods in com.proyecto.jpa.service with parameters of type Product