Changeset 00fa72f for src/main/java/com/example/moviezone/model
- Timestamp:
- 02/09/23 14:06:45 (21 months ago)
- Branches:
- master
- Children:
- 6a9006d, a9ffccd
- Parents:
- 0ba5d1a
- 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 25 25 @Column(name = "id_category", nullable = false) 26 26 @GeneratedValue(strategy = GenerationType.IDENTITY) 27 Integer id _category;27 Integer idcategory; 28 28 String name; 29 29 Integer extra_amount; … … 43 43 if (o == null || getClass() != o.getClass()) return false; 44 44 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); 46 46 } 47 47 48 48 @Override 49 49 public int hashCode() { 50 return Objects.hash(id _category, name, extra_amount);50 return Objects.hash(idcategory, name, extra_amount); 51 51 } 52 52 } -
src/main/java/com/example/moviezone/model/Ticket.java
r0ba5d1a r00fa72f 43 43 } 44 44 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 45 60 public Ticket() { 46 61 47 62 } 63 64 public void setPrice(long price) { 65 this.price = price; 66 } 48 67 }
Note:
See TracChangeset
for help on using the changeset viewer.