Newer
Older
bremer / src / main / kotlin / repository / UserRepository.kt
yhornisse on 2 Jul 2023 512 bytes add project
/*
 * 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 findByName(name: String): UserEntity? = userDao.findByName(name)
}