Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Java J2ee Architect Tutorial
→
Java J2ee Architect Interview Questions in Java J2ee Architect Tutorial
→
What Are The Ways To Avoid Lazyinitializationexce...
1.
What Are The Ways To Avoid Lazyinitializationexception ?
Answer»
Set lazy=false in the
HIBERNATE
config file.
Set @Basic(fetch=FetchType.EAGER) at the mapping.
MAKE
SURE
that we are
ACCESSING
the dependent objects before closing the session.
Using Fetch Join in HQL.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Shall We Use Abstract Classes Or Interfaces In Policy / Strategy Design Pattern ?
Difference Between Factory And Strategy Design Pattern ?
Difference Between Builder And Composite ?
Difference Between Adapter And Facade ?
Difference Between Proxy And Adapter Design Patterns ?
What Kind Of Software Architecture Your Organization Follow ?
How Do You Coordinate And Communicate With The Team Developers ?
Which Uml Diagrams You Usually Use For Design ?
What Would You Do If You Have To Add A Jar To The Project Using Maven ?
If You Are Given A Choice To Implement The Code To Either Insert A Record Or Update If Already Exist, Which Approach Will You Follow ? 1. Insert Into The Db Table. If Exception Occurs, Update The Existing Record. 2. Check If The Record Exists And Update It If It Exists, If Not Insert A New Record.
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies