org.babyfish.jimmer.sql.ast.mutation.MutationResultItem.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-sql Show documentation
Show all versions of jimmer-sql Show documentation
A revolutionary ORM framework for both java and kotlin
The newest version!
package org.babyfish.jimmer.sql.ast.mutation
interface MutationResultItem {
val originalEntity: E
val modifiedEntity: E
/**
* If it is true, that means the save object is changed,
* such as,
* - The id is assigned to generated value
* - Version is increased
* - The back reference of children of one-to-many association is set
* otherwise, the [originalEntity] and [modifiedEntity]
* should be same object.
*/
val isModified: Boolean
get() = originalEntity !== modifiedEntity
}