org.babyfish.jimmer.sql.DraftPreProcessor.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
package org.babyfish.jimmer.sql
import org.babyfish.jimmer.Draft
/**
* Before saving draft, give user a chance to modify it.
*
* This interface is very similar to another interface
* [DraftInterceptor],
* the differences between the two are as follows:
*
* - This interface is more conducive to SQL optimization, but has weaker functions
* - [DraftInterceptor] has stronger features but is not carp SQL optimized
*
*
*
* @see DraftInterceptor
*/
interface DraftPreProcessor {
fun beforeSave(draft: D)
}