We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6191904 commit 5a0094dCopy full SHA for 5a0094d
1 file changed
src/main/java/cat/udl/eps/softarch/demo/domain/Inventory.java
@@ -1,5 +1,6 @@
1
package cat.udl.eps.softarch.demo.domain;
2
3
+import cat.udl.eps.softarch.demo.domain.UriEntity;
4
import jakarta.persistence.*;
5
import jakarta.validation.constraints.NotBlank;
6
import lombok.Data;
@@ -9,19 +10,19 @@
9
10
@Entity
11
@Data
12
@EqualsAndHashCode(callSuper = true)
-public class Inventory extends User {
13
+public class Inventory extends UriEntity {
14
15
@Id
16
@GeneratedValue(strategy = GenerationType.IDENTITY)
17
private Long id;
18
19
@NotBlank
- private String name;
20
+ private String name;
21
- private String description;
22
+ private String description;
23
24
- private String location;
25
+ private String location;
26
- private int totalStock;
27
-}
+ private int totalStock;
28
+}
0 commit comments