package com.example.todolist.repository;

import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.example.todolist.entity.Account;

@Repository
public interface AccountRepository extends JpaRepository<Account, Integer> {
    // SELECT * FROM account WHERE login_id = loginId に相当 
    Optional<Account> findByLoginId(String loginId);
}
