All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.babyfish.jimmer.sql.ast.mutation.MutationResultItem.kt Maven / Gradle / Ivy

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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy