At the moment the SimpleJpaRepository and generated AOT repositories all use the default EntityManager factory. As a user of Spring Data JPA I would like to have the option to be able to switch to the Hibernate StatelessSession instead of the default stateful EntityManager.
At the moment the only option to do so is to write everything yourself (or only for selected usecases).
It would be nice if there was an option (globally or per method) to indicate that this should use a StatelessSession or regular EntityManager. I'm aware that this would, probably, be a Hibernate only implementation as I"m not aware of existing/similair support in other JPA frameworks.