Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:3.0[/b]
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[b]Name and version of the database you are using:postgresql 8.0[/b]
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
Hi. I would like to have some more information concerning lazy="false" and outer-join = "true".
Firstly, I've explicitly specify lazy="false" in all my classes and when I tried to access a collection from a specific class, I got the LazyInitializationException error.... I've also explicitly set lazy="false" in all my one-to-many mappings, but I still got the same error. Why is this so?
Later I set outer-join = "true" in all my many-to-one mappings and now everythin works fine. I thought that specifying attribute lazy="false" is enough to obtain all the datas in my collection, but in my case it did not work.
Is there a conflict if a specify both i.e lazy="false" in classes and one-to-many mappings and outer-join = "true" in many-to-one mappings?
thanks in advance