Newer
Older
bremer / src / main / kotlin / service / domain / UserDomainService.kt
yhornisse on 2 Jul 2023 562 bytes add project
/*
 * Copyright (c) 2023. yo-saito. All Rights Reserved.
 */

package net.piedpiper.bremer.service.domain

import net.piedpiper.bremer.entity.UserEntity
import net.piedpiper.bremer.repository.UserRepository
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.stereotype.Service

@Service("bremer.dao.UserDomainService")
class UserDomainService(
    @Qualifier("bremer.dao.UserRepository")
    private val userRepository: UserRepository
) {
    fun findUserByName(name: String): UserEntity? = userRepository.findByName(name)
}