main
Last change
on this file was f4b4afa, checked in by Nikola Todoroski <nikola.todoroski@…>, 6 months ago |
Pushed whole project, original project location on github:https://github.com/hehxd/Tech-Harbor
|
-
Property mode
set to
100644
|
File size:
957 bytes
|
Line | |
---|
1 | package tech.techharbor.Model;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 | import tech.techharbor.Model.EmbeddedClasses.OrderTableContainsProductClass;
|
---|
6 |
|
---|
7 | import java.util.Objects;
|
---|
8 |
|
---|
9 | @Entity
|
---|
10 | @Data
|
---|
11 | @Table(name = "order_table_contains_product", schema = "project", catalog = "db_202324z_va_prj_techharbor")
|
---|
12 | public class OrderTableContainsProductModel {
|
---|
13 |
|
---|
14 | @EmbeddedId
|
---|
15 | private OrderTableContainsProductClass orderTableContainsProductClass;
|
---|
16 |
|
---|
17 | @Basic
|
---|
18 | @Column(name = "quantity", nullable = false)
|
---|
19 | private Integer quantity;
|
---|
20 |
|
---|
21 | public OrderTableContainsProductModel(OrderTableContainsProductClass orderTableContainsProductClass, Integer quantity) {
|
---|
22 | this.orderTableContainsProductClass = orderTableContainsProductClass;
|
---|
23 | this.quantity = quantity;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public OrderTableContainsProductModel() {
|
---|
27 | }
|
---|
28 |
|
---|
29 | @Override
|
---|
30 | public int hashCode() {
|
---|
31 | return Objects.hash(orderTableContainsProductClass, quantity);
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.