I know spring data jpa can execute sql by two ways.One is execute sql which is included by @Query, the other is parse method name and generate sql. I clone the source code o
Its a multi-step process:
PartTree
class is part of the Spring Data Commons module, which is a dependency for the store-specific Spring Data modules (like the Spring Data JPA module).PartTree
is then passed to a JpaQueryCreator to generate a JPA CriteriaQuery
instance.CriteriaQuery
instance is passed to the underlying JPA provider (Hibernate, OpenJPA, EclipseLink, etc.) which then generates SQL to be executed.