- Timestamp:
- 02/02/23 15:11:38 (22 months ago)
- Branches:
- master
- Children:
- 013e0bc
- Parents:
- 6626008
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/model/Category.java
r6626008 rd12020e 12 12 @ToString 13 13 @Entity 14 public class Categor ies{14 public class Category { 15 15 @Id 16 16 @Column(name = "id_category", nullable = false) … … 20 20 Integer extra_amount; 21 21 22 public Categor ies(String name, Integer extra_amount) {22 public Category(String name, Integer extra_amount) { 23 23 this.name = name; 24 24 this.extra_amount = extra_amount; 25 25 } 26 26 27 public Categor ies() {27 public Category() { 28 28 29 29 } … … 33 33 if (this == o) return true; 34 34 if (o == null || getClass() != o.getClass()) return false; 35 Categor ies that = (Categories) o;35 Category that = (Category) o; 36 36 return Objects.equals(id_category, that.id_category) && Objects.equals(name, that.name) && Objects.equals(extra_amount, that.extra_amount); 37 37 }
Note:
See TracChangeset
for help on using the changeset viewer.