Skip to content

Add support for JPA AOT Repositories #3830

Closed
1 of 2 issues completed
Closed
1 of 2 issues completed
@mp911de

Description

@mp911de

Generate AOT query methods for the following query methods:

Supported Features

  • Derived query methods, @Query/@NativeQuery and named query methods
  • @Modifying methods returning void or int
  • @QueryHints support
  • Pagination, Slice, Stream, and Optional return types
  • Sort query rewriting
  • DTO Projections
  • Value Expressions (Those require a bit of reflective information.
    Mind that using Value Expressions requires expression parsing and contextual information to evaluate the expression)

Limitations

  • Configuration of escapeCharacter and queryEnhancerSelector are not yet considered
  • QueryRewriter must be a no-args class. QueryRewriter beans are not yet supported.
  • Methods accepting ScrollPosition (e.g. Keyset` pagination) are not yet supported

Excluded methods

  • CrudRepository and other base interface methods
  • Querydsl and Query by Example methods
  • Methods whose implementation would be overly complex
    • Methods accepting ScrollPosition (e.g. Keyset pagination)
    • Stored procedure query methods annotated with @Procedure
    • Dynamic projections

Sub-issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions