steve wrote:
How crappy is it that people use tools (freely available I might add) and then bash those tools because they do not understand how to properly use those tools? Fairly crappy I'd say; maybe even 12 on your scale of 10...
Quote:
In a JTA environment it is not that easy to do as you suggest
Um, yes it is that easy. Scope the session to the JTA transaction such that the same session is available throughout the duration of that JTA transaction. Or you know what, even use the built-in capability of Hibernate doing this for you (SessionFactory.getCurrentSession()).
Or yeah, go ahead and make eveything non-lazy (maybe try reading the docs as to the correct way to do that) and suck most of your database into memory just to load in some single row of data.
Hey finally a discussion, and also speaking my language. Your argument about something being free doesn't mean anything to me since I did not made the decision to use it. And I find it a weak argument also.
I agree that making everything non-lazy is not the way. But shouldn't it at least work that way if I want it to work that way? The database is not and wil not be that big and with a cache behind I see no problems.
The JTA transaction is finished before i get to the JSP so I don't see how that can workout for me.
All and all this is just non-intuitive and tedious, and I am not the only one because this is considered a pain by many. And if am the basher because it drives me nuts then so be it, fine.
I have hibernate in action on my desk for a while now. I browsed the online docs over and over but i am probably to stupid to understand it all. Strange though that I understand everything else out there.