posted 11 years ago
I change the colomn taStockId as follow
@Column(insertable = true)
private Integer tastockid;
Still the same exception :-(
The log of hibernate shows the following output:
Hibernate: insert into TaStock (active, buydate, buysell, selldate, slope, stockid, tapatternid, watch) values (?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: select currval('TaStock_id_seq')
Hibernate: insert into TaStockPrice (date, line, price, quality, tastockid) values (?, ?, ?, ?, ?)
It looks like hibernate doesn't use the Id of TaStock in the insert statement of TaStockPrice.