Brent Johnson wrote:
This is probably a simple question. I've read the Wiki about using Hibernate and most of that uses Hibernate directly in Flow. I'd rather not do that. I've created some "Wrapper" type classes that are intended to be used from Flow, and they handle the hibernate sessions. All they really do is return the POJO objects for display purposes in a JXTemplate. When a save is done, the flow populates a POJO object based on data from the request, and a save() function is called in the wrapper which handles the saving.
I deeply recommend you not to use hibernate directly but put all your data access code and service layer into spring framework. Then you simply query spring context from servlet context, lookup appropriate service bean and perform some actions.

--
Leszek Gawron                                                 MobileBox
[EMAIL PROTECTED]                              http://www.mobilebox.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to