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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -