Files
TrisolarisServer/src/main/kotlin/com/android/trisolarisserver/repo/property/PropertyRepo.kt
androidlover5842 5df019ed6e
All checks were successful
build-and-deploy / build-deploy (push) Successful in 40s
Auto-generate property codes and join by code
2026-02-01 22:58:25 +05:30

12 lines
406 B
Kotlin

package com.android.trisolarisserver.repo.property
import com.android.trisolarisserver.models.property.Property
import org.springframework.data.jpa.repository.JpaRepository
import java.util.UUID
interface PropertyRepo : JpaRepository<Property, UUID> {
fun existsByCode(code: String): Boolean
fun existsByCodeAndIdNot(code: String, id: UUID): Boolean
fun findByCode(code: String): Property?
}