PDA

View Full Version : hibernate3 conversion



micks128
Apr 20th, 2005, 03:29 AM
I have just converted a project to use Spring 1.2 RC2 and hibernate 3.

Everything was working fine until I got this bug. The fact that it occurs only in this situation and only occured after changing versions makes me wonder if the spring release candidate has a fault.

I am using the openSessionInView filter to keep a hibernate session open in the presentation layer.

What I have is a JSF data table acessing a backing bean. The backing bean generates a list of objects retrieved from the database. JSF then goes through this list of objects and tries to render each one as a row. The problem is when the object tries to access a persistant collection it fails because of no session. With an older version of spring and hibernate 2.1 this worked.

Can you tell me what may have changed?

Thanks :)

alesj
Apr 20th, 2005, 03:59 AM
Write more info. Some stack trace would be nice.
My migration from H2 to H3 went with no problems on OSIV side.

katentim
Apr 20th, 2005, 06:30 AM
Can you tell me what may have changed?
You might want to look throught this thread (http://forum.springframework.org/viewtopic.php?t=4494). Again, the stack trace would help.