Since SELECT
is kind of the default, unless you use an entity graph or explicitly join fetch an association, you will always see the problem due to the use of the @BatchSize
annotation on your entity, as that is what trigger the use of the BatchEntitySelectFetchInitializer
.
So if you want a temporary workaround, remove the uses of @BatchSize
. I created [HHH-16025] - Hibernate JIRA for this bug, so you can track that.