NatureRepository

@Repository
interface NatureRepository : KRepository<Nature, Long>

性格仓储接口

定义性格数据的查询与持久化操作

Author

lishangbu

Since

2026/2/12

Properties

Link copied to clipboard
abstract val entityType: KClass<Nature>
Link copied to clipboard
abstract val sql: KSqlClient
Link copied to clipboard
abstract val type: ImmutableType

Functions

Link copied to clipboard
abstract fun count(): Long
Link copied to clipboard
open fun delete(entity: Nature)
abstract fun delete(entity: Nature, mode: DeleteMode): Int
Link copied to clipboard
abstract fun deleteAll()
open fun deleteAll(entities: Iterable<Nature>)
abstract fun deleteAll(entities: Iterable<Nature>, mode: DeleteMode): Int
Link copied to clipboard
@AliasFor(value = "deleteByIds")
open fun deleteAllById(ids: Iterable<Long>)
Link copied to clipboard
open fun deleteById(id: Long)
abstract fun deleteById(id: Long, mode: DeleteMode): Int
Link copied to clipboard
@AliasFor(value = "deleteAllById")
open fun deleteByIds(ids: Iterable<Long>)
abstract fun deleteByIds(ids: Iterable<Long>, mode: DeleteMode): Int
Link copied to clipboard
open fun existsById(id: Long): Boolean
Link copied to clipboard
open fun findAll(): List<Nature>
abstract fun findAll(fetcher: Fetcher<Nature>?): List<Nature>
abstract override fun findAll(pageable: Pageable): Page<Nature>
open override fun findAll(sort: Sort): List<Nature>
abstract fun findAll(fetcher: Fetcher<Nature>?, block: SortDsl<Nature>.() -> Unit): List<Nature>
abstract fun findAll(fetcher: Fetcher<Nature>?, sort: Sort): List<Nature>
abstract fun findAll(pageable: Pageable, fetcher: Fetcher<Nature>?): Page<Nature>
abstract fun findAll(pageIndex: Int, pageSize: Int, fetcher: Fetcher<Nature>?, block: SortDsl<Nature>.() -> Unit?): Page<Nature>
abstract fun findAll(pageIndex: Int, pageSize: Int, fetcher: Fetcher<Nature>?, sort: Sort): Page<Nature>
Link copied to clipboard
@AliasFor(value = "findByIds")
open fun findAllById(ids: Iterable<Long>): List<Nature>
Link copied to clipboard
open fun findById(id: Long): Optional<Nature>
open fun findById(id: Long, fetcher: Fetcher<Nature>): Optional<Nature>
Link copied to clipboard
@AliasFor(value = "findAllById")
abstract fun findByIds(ids: Iterable<Long>, fetcher: Fetcher<Nature>?): List<Nature>
Link copied to clipboard
abstract fun findMapByIds(ids: Iterable<Long>, fetcher: Fetcher<Nature>?): Map<Long, Nature>
Link copied to clipboard
abstract fun findNullable(id: Long, fetcher: Fetcher<Nature>?): Nature?
Link copied to clipboard
open fun insert(entity: Nature, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Nature
open fun insert(input: Input<Nature>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Nature
Link copied to clipboard
open fun insertIfAbsent(entity: Nature, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Nature
open fun insertIfAbsent(input: Input<Nature>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Nature
Link copied to clipboard
open fun merge(entity: Nature, block: KSaveCommandPartialDsl.() -> Unit?): Nature
open fun merge(input: Input<Nature>, block: KSaveCommandPartialDsl.() -> Unit?): Nature
Link copied to clipboard
open fun <S : Nature> save(entity: S): S
open fun save(input: Input<Nature>, block: KSaveCommandDsl.() -> Unit?): Nature
open fun <V : View<Nature>> save(entity: Nature, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): V
open fun save(entity: Nature, fetcher: Fetcher<Nature>, block: KSaveCommandDsl.() -> Unit?): Nature
open fun <V : View<Nature>> save(input: Input<Nature>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): V
open fun save(input: Input<Nature>, fetcher: Fetcher<Nature>, block: KSaveCommandDsl.() -> Unit?): Nature
open fun save(entity: Nature, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Nature
open fun save(input: Input<Nature>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Nature
open fun <V : View<Nature>> save(entity: Nature, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): V
open fun save(entity: Nature, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Nature>, block: KSaveCommandPartialDsl.() -> Unit?): Nature
open fun <V : View<Nature>> save(input: Input<Nature>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): V
open fun save(input: Input<Nature>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Nature>, block: KSaveCommandPartialDsl.() -> Unit?): Nature
Link copied to clipboard
open fun <S : Nature> saveAll(entity: Iterable<S>): List<S>
Link copied to clipboard
open fun saveCommand(entity: Nature, block: KSaveCommandDsl.() -> Unit?): KSimpleEntitySaveCommand<Nature>
open fun saveCommand(input: Input<Nature>, block: KSaveCommandDsl.() -> Unit?): KSimpleEntitySaveCommand<Nature>
open fun saveCommand(entity: Nature, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KSimpleEntitySaveCommand<Nature>
open fun saveCommand(input: Input<Nature>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KSimpleEntitySaveCommand<Nature>
Link copied to clipboard
open fun saveEntities(entities: Iterable<Nature>, block: KSaveCommandDsl.() -> Unit?): List<Nature>
open fun <V : View<Nature>> saveEntities(entities: Iterable<Nature>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): List<V>
open fun saveEntities(entities: Iterable<Nature>, fetcher: Fetcher<Nature>, block: KSaveCommandDsl.() -> Unit?): List<Nature>
open fun saveEntities(entities: Iterable<Nature>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): List<Nature>
open fun <V : View<Nature>> saveEntities(entities: Iterable<Nature>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): List<V>
open fun saveEntities(entities: Iterable<Nature>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Nature>, block: KSaveCommandPartialDsl.() -> Unit?): List<Nature>
Link copied to clipboard
open fun saveEntitiesCommand(entities: Iterable<Nature>, block: KSaveCommandDsl.() -> Unit?): KBatchEntitySaveCommand<Nature>
open fun saveEntitiesCommand(entities: Iterable<Nature>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KBatchEntitySaveCommand<Nature>
Link copied to clipboard
open fun saveInputs(inputs: Iterable<Input<Nature>>, block: KSaveCommandDsl.() -> Unit?): List<Nature>
open fun <V : View<Nature>> saveInputs(inputs: Iterable<Input<Nature>>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): List<V>
open fun saveInputs(inputs: Iterable<Input<Nature>>, fetcher: Fetcher<Nature>, block: KSaveCommandDsl.() -> Unit?): List<Nature>
open fun saveInputs(inputs: Iterable<Input<Nature>>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): List<Nature>
open fun <V : View<Nature>> saveInputs(inputs: Iterable<Input<Nature>>, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): List<V>
open fun saveInputs(inputs: Iterable<Input<Nature>>, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<Nature>, block: KSaveCommandPartialDsl.() -> Unit?): List<Nature>
Link copied to clipboard
open fun saveInputsCommand(input: Iterable<Input<Nature>>, block: KSaveCommandDsl.() -> Unit?): KBatchEntitySaveCommand<Nature>
open fun saveInputsCommand(inputs: Iterable<Input<Nature>>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KBatchEntitySaveCommand<Nature>
Link copied to clipboard
open fun update(entity: Nature, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Nature
open fun update(input: Input<Nature>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): Nature
Link copied to clipboard
abstract fun <V : View<Nature>> viewer(viewType: KClass<V>): KRepository.Viewer<Nature, Long, V>