java - Hibernate - Concurrency Handling -
having item entity contains list of boms association, when item being updated order of boms updates need updated based on primary key prevent database deadlock if same item entity being updated other session.
problem solution reference here
as per above link hibernate.order_updates
associated entities update in primary key order such way can prevent concurrent updates , fine.
but after adding hibernate.order_updates
property true, main item entity updated after associated bom entities updated, need update item entity first , associated bom entities prevent item level concurrency.
how this, there configuration in hibernate. please suggest how move forward.
currently in spring4 , hibernate 4.
Comments
Post a Comment