Changeset d12020e for src


Ignore:
Timestamp:
02/02/23 15:11:38 (22 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
013e0bc
Parents:
6626008
Message:

Update Category.java

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/model/Category.java

    r6626008 rd12020e  
    1212@ToString
    1313@Entity
    14 public class Categories {
     14public class Category {
    1515    @Id
    1616    @Column(name = "id_category", nullable = false)
     
    2020    Integer extra_amount;
    2121
    22     public Categories(String name, Integer extra_amount) {
     22    public Category(String name, Integer extra_amount) {
    2323        this.name = name;
    2424        this.extra_amount = extra_amount;
    2525    }
    2626
    27     public Categories() {
     27    public Category() {
    2828
    2929    }
     
    3333        if (this == o) return true;
    3434        if (o == null || getClass() != o.getClass()) return false;
    35         Categories that = (Categories) o;
     35        Category that = (Category) o;
    3636        return Objects.equals(id_category, that.id_category) && Objects.equals(name, that.name) && Objects.equals(extra_amount, that.extra_amount);
    3737    }
Note: See TracChangeset for help on using the changeset viewer.