[O] Optional should not exist in kt

This commit is contained in:
Azalea
2025-10-25 05:50:01 +08:00
parent e7b96d4b24
commit b2aef08c01
38 changed files with 269 additions and 290 deletions

View File

@@ -125,7 +125,7 @@ open class BaseEntity(
@NoRepositoryBean
interface GenericUserDataRepo<T : IUserData> : JpaRepository<T, Long> {
fun findByCard(card: Card): T?
fun findByCard_ExtId(extId: Long): Optional<T>
fun findByCard_ExtId(extId: Long): T?
@Query("select e from #{#entityName} e where e.card.rankingBanned = false")
fun findAllNonBanned(): List<T>