This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
failed to lazily initialize a collection of role hibernate3
posted 5 years ago
I have one to one mapping between three objects.
Job --> salesRole --> positionTemplate.
I am getting this "failed to lazily initialize a collection of role" error with hibernate 3. i tried to use lazy="false" to force hibernate to load eagerly.
still i get the same error when i try to access position template fields. Here are my hibernate mapping files.
Can some one please point out the problem. here is how i am loading Job object.