-
Support join fetch for reference association (one-to-one or many-to-one), and property-level configurations are supported by Output DTO.
Development has been finished now, so documentation is not ready, short guide here
-
Java Fetcher Example:
-
Kotlin Fetcher Example:
-
Java OutputDTO Example:
-
UserView2
in https://github.com/babyfish-ct/jimmer/blob/main/project/jimmer-sql/src/test/dto/User.dto -
BookViewWithConfiguration
andBookViewWithConfiguration2
in https://github.com/babyfish-ct/jimmer/blob/main/project/jimmer-sql/src/test/dto/org/babyfish/jimmer/sql/model/Book.dto
-
-
Kotlin OutputDTO Example
-
UserView2
in https://github.com/babyfish-ct/jimmer/blob/main/project/jimmer-sql-kotlin/src/test/dto/User.dto -
BookViewWithConfiguration
andBookViewWithConfiguration2
in https://github.com/babyfish-ct/jimmer/blob/main/project/jimmer-sql-kotlin/src/test/dto/org/babyfish/jimmer/sql/kt/model/classic/book/Book.dto
-
9 built-in configurations:
!fetchType
,!where
,!orderBy
,!filter
,!recursion
,!limit
,!offset
,!batch
,!depth
The Antlr grammar for the AST of newest OutputDTO: https://github.com/babyfish-ct/jimmer/blob/main/project/jimmer-dto-compiler/src/main/antlr/org/babyfish/jimmer/dto/compiler/Dto.g4
-
-
Global configuration
jimmer.mutation-transaction-required
, if it is true, any mutation operations without transaction context will report error.