hi,
I found the solution for my problen, just adding the nut-null="true" attribute just for the key element and not to colmun.
this works how I will but now: hibernate does the following:
Code:
Hibernate: insert into prices (date, price, stock_id) values (?, ?, ?)
Hibernate: update stocks set name=?, isin=?, symbol=?, wkn=? where id=?
Hibernate: update prices set date=?, price=? where id=?
Hibernate: update prices set stock_id=? where id=?
did this mean, that hibernate update stocks because it does not know if the oject details have ben changed will be ok but why hibernate updates the price objects two times again?? there can't be any change and also the key (stock_id) cant be changed in that time, so why ?? this is just a performace break.
thanks.
ys. Gideon