Search within Object Relational Mapping
Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
alternative to session.flush() in hibernate?
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
I am currently facing an issue with persisting an object in DB.
The scenario goes like this -
I want to update a bunch of records based on the user input.
First i save the input from the user in the DB as one row.
Then i call a procedure which selects the row based on some condition and fires an insert/update on the table.
In order to get the procedure the values, i do session.flush()..because only then will my procedure get the required row from the DB.
Is there any other way by which i can persist the object in the DB?
I did try saveOrUpdate(); but that did not work as i have parent/child relationship.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
Boost this thread!
Hibernate cache problem?
Calling Oracle Stored Procedure which has parameter as CURSOR
get data from html tables and send it to controller/servlet
Update based on Row id