Skip to content

Commit

Permalink
fix id type
Browse files Browse the repository at this point in the history
  • Loading branch information
tkeburia committed Dec 11, 2023
1 parent 983d4e8 commit d4898a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions product-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import org.springframework.cloud.gcp.data.datastore.core.mapping.Field;
import org.springframework.data.annotation.Id;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

@Entity(name = "products")
@AllArgsConstructor
Expand All @@ -19,9 +17,8 @@
public class Product {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Field(name = "product_id")
private long id;
private Long id;
private String name;
private String description;
private int price;
Expand Down

0 comments on commit d4898a8

Please sign in to comment.