If your application is designed with good encapsulation of database
functions (e.g. all your queries are inside DAO classes) then you just
remove the RIFE database code and put in Hibernate code, and the
front-end stuff should continue working as before.
The one exception to that is if you have code that needs to mix
RIFE-native database operations and Hibernate ones (or any other direct
JDBC access) in the same database transaction. In that case you will
want something like what I attached to this bug report.
http://uwyn.com/issues/browse/RIFE-311
With that in place, I switched one RIFE project from the built-in
database classes to iBatis, while still using RIFE's built-in user
database code, and it went pretty smoothly.
You only need the above if you want to do updates using both RIFE's
database APIs and Hibernate/iBatis/whatever *in the same transaction*.
If you don't need that, then it should work out of the box.
-Steve
ying lcs wrote:
hi,
Is thre any Rife example which show how to integerate Rife wiht
hibernate?
Thank you.
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users