My two cents: While it's not difficult to use Hibernate directly I find easier to use the Spring templates. If you define the session factory as an Spring bean it's really simle. You can implement it just by looking at the Spring manual reference.
This is a really straightforward solution and I don't see any problem with it. Regards Pedro El mié, 15-02-2006 a las 13:30 +0100, Andreas Bulling escribió: > Hi Ron, > > also thanks for your answer! > > | In TSS there is an article about hivemind which gives very good source > | code for using hibernate with hivemind including transaction > | interception. If your services are configured in Hivemind, or if you use > | hibernate directly from your pages/components (which you normally > | shouldn't) - this is the way to go. > | If you use spring - consult a spring mailing list. > > [Newbie] What is TSS? ;) > > No, I don't want to use spring (or at least I don't know why I should > if I can use Hivemind instead which seems to be a replacement for it, at least > to a certain degree and my current knowledge). > > But that's exactly the problem: What are the services I need/I have to > implement/the steps I have to do to be able to use Hibernate for example > in a vlib-related code context. What would I have to substitute in the > vlib code to use Hibernate correctly? > > It seems I need some Hivemind service(s) which do the low-level > stuff, right!? But after that: Do I have to inject some resource, > how can I access the database, etc.? Which parts of the current > vlib EJB-Code become unncessary? > > Sincerly, > Andreas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]