Hibernate N+1 query issue when fetching @OneToOne associations with JPA Criteria and @LazyToOne

Yes, it works!

But I have to disable bytecode enhancement.

With this enabled, hibernate seems to ignore LEFT FETCH configured into criteria.
So, for every record, are executed several query to get childs.

Unfortunately, disabling bytecode enhancement, i can’t use anymore:

@Basic(fetch=LAZY)
@Lob
@Column(name="CONTENT")
private content;

But this is a minor issue.

Thank you!