Ignore:
Timestamp:
01/06/23 02:51:45 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
d4b888e
Parents:
1bd8d1e
Message:

Added full functionality for creating order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/model/Delivery.java

    r1bd8d1e rf484b14  
    1717public class Delivery {
    1818    @Id
     19    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1920    Integer ID_delivery;
    2021    @Column(name = "delivery_status")
     
    2829    @OneToOne
    2930    Order order;
     31
     32    public Delivery(String status, String address, Deliveryman deliveryman, Order order) {
     33        this.status = status;
     34        this.address = address;
     35        this.deliveryman = deliveryman;
     36        this.order = order;
     37    }
    3038
    3139    @Override
Note: See TracChangeset for help on using the changeset viewer.