OneToOne « Fetch « JPA Q&A





1. Hibernate JPA OneToOne querying despite Lazy Fetch    stackoverflow.com

I am having problems where Hibernate is querying a class on the other side of a lazy onetoone relationship. The query to top_players, depending on the cache settings does a query through ...

2. Hibernate OneToOne automatic join fetching (resolving n+1 problem)    stackoverflow.com

we have a n+1 select problem with Hibernate 3.3. For simplicity's sake, I'll just do a short abstract example. Suppose we have the following simple classes:

class MainEntity {
  @Id
  public Long ...