Joined: Mon Dec 25, 2006 4:59 am Posts: 15
|
Hi Guys I am trying to figure out how can i pass a JDBC connection to hibernate and commit it outside of hibernate scope.
Here is the flow:
[legacy code] transaction begins [legacy code] update something [hibernate] update something else [legacy code] transaction ends one commit for all changes to DB
This need arises as only few models were mapped to hibernate, while whole application is still written in legacy code. When JDBC connection is obtained in legacy code some entities should be handled by legacy code while others by hibernate and one commit should wrap it all.
thanks
|
|