RM-Fashion/src/main/java/com/rmfashion/RM/Fashion/Entity/Shipment.java
package com.rmfashion.RM.Fashion.Entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity(name = "Shipment")
public class Shipment {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ShipMent_ID")
    private long shipmentId;

    @Column(name = "Delivery_Status")
    private String status;

    @OneToOne
    @JoinColumn(name = "Order_ID")
    private Order order;
}
