package com.dbnt.faisp.main.userInfo.repository;

import com.dbnt.faisp.main.userInfo.model.UserCareer;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;


public interface UserCareerRepository extends JpaRepository<UserCareer, UserCareer.UserCareerId> {

  Optional<UserCareer> findTop1ByUserSeqOrderByCareerSeqDesc(Integer userSeq);
  List<UserCareer> findByUserSeqOrderByStartDateDesc(Integer userSeq);
}
