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/Repair.java

    r1bd8d1e rf484b14  
    1717public class Repair {
    1818    @Id
     19    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1920    Integer ID_repair;
    2021    @OneToOne
     
    2728    @JoinColumn(name = "id_service_book")
    2829    ServiceBook serviceBook;
     30
     31    public Repair(Order order, RepairShop repairShop, ServiceBook serviceBook) {
     32        this.order = order;
     33        this.repairShop = repairShop;
     34        this.serviceBook = serviceBook;
     35    }
    2936
    3037    @Override
Note: See TracChangeset for help on using the changeset viewer.