Hi,
I have a requirement where in i have to save records into two tables at a time.while insertion of data into tables there is no issue,but when i serach for data based on the pk of first table it is throwing a lazy exception.The first table is linked to second table through many-to-one relation.why the lazy exception is thrown and how to handle this exception..
any one can pls help.
Thank you,
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html