Michael Laccetti wrote:
If you are using Spring, you may be interested in a Servlet Filter
that supports opening/closing sessions on a per-request basis:
http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/orm/jpa/support/OpenEntityManagerInViewFilter.html
Mike
Thanks - at the moment, I'm not using Spring - I was trying to figure
out if I need to use it - that would mean yet another framework to learn
at the same time as Wicket and Hibernate....
nbc
Neil B. Cohen wrote:
I suspect I'm biting off more than I can chew conveniently but maybe
someone can push me in the right direction...
I'm attempting to build a fairly simple web application with Wicket, and
I'd like to use Hibernate to manage the database access (although other
frameworks like Cayenne have been suggested and I'll look at them
too...)
I think I've figured out the basic application structure, and how to map
my data to an html page. But I don't think I understand the
relationships between web sessions, hibernate sessions, DAO objects etc.
I need to open a mysql db, read a set of objects from a table, and
display them in a (paged) table on the screen. I've looked at several
examples but they are using in-memory databases, or Spring along with
Hibernate and I can't get a handle on what needs to be done to whom and
by whom....
Anyone have a really simple MySQL example like that? Or an online
tutorial that I could follow?
Much obliged,
nbc
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]