BerryFlavorRepository

树果风味仓储接口

定义树果风味数据的查询与持久化操作

Author

lishangbu

Since

2025/09/14

Inheritors

Functions

Link copied to clipboard
abstract fun deleteById(id: Long)

按 ID 删除树果风味

Link copied to clipboard
abstract fun findAll(): List<BerryFlavor>

查询全部树果风味列表

abstract fun findAll(example: Example<BerryFlavor>?): List<BerryFlavor>

按条件查询树果风味列表

abstract fun findAll(example: Example<BerryFlavor>?, pageable: Pageable): Page<BerryFlavor>

按条件分页查询树果风味

Link copied to clipboard
abstract fun findById(id: Long): BerryFlavor?

按 ID 查询树果风味

Link copied to clipboard
abstract fun flush()

刷新持久化上下文

Link copied to clipboard
abstract fun save(berryFlavor: BerryFlavor): BerryFlavor

保存树果风味

Link copied to clipboard
abstract fun saveAndFlush(berryFlavor: BerryFlavor): BerryFlavor

保存树果风味并立即刷新