Releases: babyfish-ct/jimmer
v0.9.20
v0.9.19
In the process of refactoring the save-command documentation, it was found that there were some minor problems in the save-command API, and improvements were made.
v0.9.17
v0.9.12
v0.9.9
v0.9.5
v0.9.4
A new feature for save command is added.
By default, this key-only object is not id-only object, so it will be consider as long association and saved recursivly.
Now, save command support a new configuration:
setKeyOnlyAsReference(A::childNodes)
or setKeyOnlyAsReferenceAll()
.
This configuration change the default behavior, consider key-only as short association, it will be only referenced, will not be saved.
Before refer key-only object, jimmer will execute an extra select statement to convert keys to ids, so QueryReason.KEY_ONLY_AS_REFERENCE
is added.
v0.9.3
- Fixed issues #701, #725, #728.
- Added
NotUniqueKeyExceptionTranslator
into jimmer example projectsjimmer-sql
,jimmer-sql-kt
,jimmer-sql-graphql
,jimmer-sql-graphql-kt
. - Added new predicate
expressionIn
which is designed for expression collection, not value collection. - Added
unaryMinus
(-
in kotlin) for numeric expression.
v0.9.1
v0.9.0
Breaking Change
-
JSqlClient (jimmer-sql), KSqlClient (jimmer-sql), JRepository (jimmer-spring-boot-starter), KRepository (jimmer-spring-boot-starter)
-
Delete depcarated methods such as
merge(..., SaveMode)
andappend(...)
,saveAll(...)
,batchSave(...)
andbatchDelete(...)
-
For save methods whose name is not
save
(insert
,insertIfAbsent
,update
,marge
), the default value of AssociatedSaveMode is no longerREPLACE
, it becomes- insert: APPEND
- insertIfAbstent: APPEND_IF_ABSENT
- update: UPDATE
- merge: MERGE
-
-
JRepository (jimmer-spring-boot-starter), KRepository (jimmer-spring-boot-starter)
Remove depreacate method
pager
and nested typePager
-
JSqlClient (jimmer-sql), KSqlClient (jimmer-sql-kotlin)
Add method
findOneById
to query non-null object, if there is no existing object, an exception will be raised -
KSqlClient*(jimmer-sql)*
-
Add shortcut functions such as
executeQuery
,executeUpdate
,executeDelete
andfindAll(..., <lambda>)
-
Add extension function
exists
-
-
Associations (jimmer-sql), KAssociations (jimmer-sql-kotlin)
-
checkExistence
is renamed toingoreConflict
-
Add shortcut methods:
insert
,insertIfAbsent
,replace
,insertAll
,insertAllIfAbsent
andreplaceAll
-
-
KWeakJoin (jimmer-sql-kotlin)
Add a new method with a new parameter to support sub query.
-
AnnotationProcessor (jimmer-apt)
The generated util class
Objects
is renamed toImmutables
by default.