Hi All, I've been wondering about this for awhile and especially when I forget about it and scratch my head when it happens. Hoping someone can shed some light.
I use commonclipse for generating the equals, hashCode and toString methods automatically at the bottom of my pojo's. I've noticed that when you leave a collection in this autogenerated set of methods that you can end up with a 'Yikes' that says illegal access to lazy collection' when you try to view the forms. It looks like the OpenSessionInView filter doesn't work or something else is going on. Any downsides to leaving collections out of the commonclipse generated methods? Does anyone know why this happens? cheers and thanks in advance for any help, Ron