RM-Fashion/src/main/java/com/rmfashion/RM/Fashion/Entity/Customer.java
<filename>RM-Fashion/src/main/java/com/rmfashion/RM/Fashion/Entity/Customer.javapackage com.rmfashion.RM.Fashion.Entity;

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

import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity(name = "Customer")
public class Customer {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "Customer_ID")
    private long customerId;


    @OneToOne
    @JoinColumn(name = "user_id")
    private User user;

    @OneToMany(mappedBy = "customer",cascade = CascadeType.ALL)
    private List <Order> orders=new ArrayList<>();
}
