Tags: hibernate
Active Spring transaction synchronization or active JTA
January 30th, 2012During Spring development I got this exception, but there was almost no reference to what caused it. So after a lot of searching I found out the cause and thought I'd blog it for others struggling with the same problem. more »
BeanCreationException NoClassDefFoundError org/hibernate/usertype/UserType during Tomcat start up
July 6th, 2011I have just spent the last 2 days looking for why my Spring container (under Tomcat) was getting ClassNotFoundException and NoClassDefFoundError during start up. There is so much mis-leading stuff in the Internet.
I had 2 projects in Eclipse: the cor… more »
LazyInitializationException in servlet
November 29th, 2008Problem: Web traffic is coming through Tomcat to one of your servlets. Your servlet accesses a couple of hibernate objects but when it tries to load a lazy proxy you get:
org.springframework.web.util.NestedServletException:
Request processing faile… more »
java.util.UUID primary keys in hibernate
November 1st, 2008Surprisingly Hibernate 3 does not support UUID's. I think the main reason for this is that UUID is not yet an ANSI database type. Each database manufacturer has implemented it in a different way, stored it as a slightly different type and has a driver (o… more »
How can I do lazy loading with a one-to-one relationship in hibernate?
October 26th, 2008I struggled for ages trying to figure out how to do lazy loading on a one-to-one relationship in hibernate. I'll put you out of your misery now - you can't!
I have one central table and 2 one-to-one relationship tables hanging off it.
When the prim… more »