Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion modules/ROOT/pages/chapter03/chapter03.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ package io.microprofile.tutorial.store.product.entity;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.validation.constraints.NotNull;

@Entity
Expand All @@ -152,7 +153,7 @@ import jakarta.validation.constraints.NotNull;
public class Product {

@Id
@GeneratedValue
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@NotNull
Expand Down Expand Up @@ -471,6 +472,7 @@ $ curl http://localhost:9080/mp-ecomm-store/api/products
[source, java]
----
@DELETE
@Transactional
@Path("products/{id}")
public Response deleteProduct(@PathParam("id") Long id) {
// Delete a product
Expand Down