Newer
Older
bremer / src / main / kotlin / repository / UserRepository.kt
yhornisse on 5 Aug 2023 515 bytes refactor and add tag
/*
 * Copyright (c) 2023. yo-saito. All Rights Reserved.
 */

package net.piedpiper.bremer.repository

import net.piedpiper.bremer.dao.UserDao
import net.piedpiper.bremer.entity.UserEntity
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.stereotype.Repository

@Repository("bremer.dao.UserRepository")
class UserRepository(
    @Qualifier("bremer.dao.UserDao")
    private val userDao: UserDao
) {
    fun findOneByName(name: String): UserEntity? = userDao.findByName(name)
}