19 lines
639 B
Plaintext
19 lines
639 B
Plaintext
package com.healthcare.ohctech.repository;
|
|
|
|
import com.healthcare.ohctech.entity.CheckupForm;
|
|
import com.healthcare.ohctech.entity.CheckupFormKeyValue;
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
import org.springframework.data.jpa.repository.Query;
|
|
import org.springframework.data.repository.query.Param;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import java.util.List;
|
|
import java.util.Optional;
|
|
|
|
@Repository
|
|
public interface CheckupFormRepo extends JpaRepository<CheckupForm, Long> {
|
|
CheckupForm findFirstByPatient_IdOrderByCheckupDateDesc(Long patientId);
|
|
|
|
Optional<CheckupForm> findById(Long id);
|
|
}
|