I suggested the templates for the ease of use. The thing is that I already ended up doing something similar (in a uglier and far less useful way) for my applications, so when I found Spring I had one less problem. It's simple. And you have the option of using CMT if you want. Again with Spring is dead easy.
Regards Pedro El mié, 15-02-2006 a las 07:33 -0800, Konstantin Ignatyev escribió: > There are numerous problems with the HibernateTemplate > Behind heated arguments there are very valid technical disadvantages:: > http://houseofhaug.net/blog/archives/2005/08/12/hibernate-hates-spring/ > > It is better to use another Spring's technique if you want/need to use Spring > http://www.onjava.com/pub/a/onjava/2005/05/18/swingxactions.html > > Pedro Abelleira Seco <[EMAIL PROTECTED]> wrote: 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] > > > > > Konstantin Ignatyev > > > > > PS: If this is a typical day on planet earth, humans will add fifteen million > tons of carbon to the atmosphere, destroy 115 square miles of tropical > rainforest, create seventy-two miles of desert, eliminate between forty to > one hundred species, erode seventy-one million tons of topsoil, add 2,700 > tons of CFCs to the stratosphere, and increase their population by 263,000 > > Bowers, C.A. The Culture of Denial: Why the Environmental Movement Needs a > Strategy for Reforming Universities and Public Schools. New York: State > University of New York Press, 1997: (4) (5) (p.206) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
