java - Hibernate column doesn't exist error -


i getting "column invoicelin_.invoicedraft not exist" error. when try save invoicedraft object without invoiceline, works well. think there problem annotations.

my invoicedraft entity;

//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; 


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -