Hibernate列不存在错误

时间:2013-05-21 14:52:19

标签: java hibernate

我收到“列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;

0 个答案:

没有答案