cccev.projection.api.entity.framework.FrameworkRepository.kt Maven / Gradle / Ivy
package cccev.projection.api.entity.framework
import cccev.projection.api.entity.SnapRepositoryBase
import cccev.s2.framework.domain.FrameworkId
import kotlinx.coroutines.reactor.awaitSingleOrNull
import org.springframework.data.neo4j.repository.ReactiveNeo4jRepository
import org.springframework.stereotype.Service
import reactor.core.publisher.Mono
interface FrameworkRepository: ReactiveNeo4jRepository {
fun findByIdentifier(identifier: String): Mono
}
@Service
class FrameworkSnapRepository(
override val repository: FrameworkRepository
): SnapRepositoryBase() {
suspend fun findByIdentifier(identifier: String): FrameworkEntity? {
return repository.findByIdentifier(identifier).awaitSingleOrNull()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy