我收到“列invoicelin_.invoicedraft不存在”错误。当我尝试保存没有InvoiceLine的InvoiceDraft对象时,它运行良好。我认为我的注释存在问题。
我的InvoiceDraft实体;
//some other columns
@Id
@Basic(optional = false)
@Column(name = "uuid")
private String uuid;
@OneToMany(cascade = CascadeType.ALL,mappedBy = "invoiceDraft", fetch = FetchType.LAZY)
private List<InvoiceLine> invoiceLineList;
InvoiceLine Entity;
//some other columns
@JoinColumn(name = "invoice_draft", referencedColumnName = "uuid")
private InvoiceDraft invoiceDraft;