Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
on Jul 16, 2012 5:40 PM by Cdelahun-Oracle
Lazy not working in JPA with Hibernate
Jul 14, 2012 9:22 AM
I an using JPA with Hibernate.
I have an entity class, which has one to one mapping to other entity classes. I want to lazily fetch the other mapped entities.
I have used @OneToOne(mappedBy="columnName",fetch=FetchType.LAZY) in both entities. But still in console, I see all the tables joined with main table in sql generated.
What is that I am missing in configuration?
I have the same question
Show 0 Likes
This content has been marked as final.
Show 1 reply
Re: Lazy not working in JPA with Hibernate
Jul 16, 2012 5:40 PM
in response to
This forum is mostly for TopLink/EclipseLink questions, so for anything complex you might want to try one of those JPA providers or ask on a forum specific to your JPA provider.
Check that you are not using other setting elsewhere such as in your query that might force a fetch join to occur.