Ignore:
Timestamp:
02/09/23 14:06:45 (21 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
6a9006d, a9ffccd
Parents:
0ba5d1a
Message:

Reservation Implemented

Location:
src/main/java/com/example/moviezone/model
Files:
2 edited

Legend:

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

    r0ba5d1a r00fa72f  
    2525    @Column(name = "id_category", nullable = false)
    2626    @GeneratedValue(strategy = GenerationType.IDENTITY)
    27     Integer id_category;
     27    Integer idcategory;
    2828    String name;
    2929    Integer extra_amount;
     
    4343        if (o == null || getClass() != o.getClass()) return false;
    4444        Category that = (Category) o;
    45         return Objects.equals(id_category, that.id_category) && Objects.equals(name, that.name) && Objects.equals(extra_amount, that.extra_amount);
     45        return Objects.equals(idcategory, that.idcategory) && Objects.equals(name, that.name) && Objects.equals(extra_amount, that.extra_amount);
    4646    }
    4747
    4848    @Override
    4949    public int hashCode() {
    50         return Objects.hash(id_category, name, extra_amount);
     50        return Objects.hash(idcategory, name, extra_amount);
    5151    }
    5252}
  • src/main/java/com/example/moviezone/model/Ticket.java

    r0ba5d1a r00fa72f  
    4343    }
    4444
     45    public Ticket(LocalDate date_reserved, Customer customer, Projection projection, Seat seat) {
     46        this.date_reserved = date_reserved;
     47        this.customer = customer;
     48        this.projection = projection;
     49        this.seat = seat;
     50    }
     51
     52    public Ticket( LocalDate date_reserved, Customer customer, Projection projection, Discount discount, Seat seat) {
     53        this.date_reserved = date_reserved;
     54        this.customer = customer;
     55        this.projection = projection;
     56        this.discount = discount;
     57        this.seat = seat;
     58    }
     59
    4560    public Ticket() {
    4661
    4762    }
     63
     64    public void setPrice(long price) {
     65        this.price = price;
     66    }
    4867}
Note: See TracChangeset for help on using the changeset viewer.