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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -