본문 바로가기

WEB BANK-END/SPRING

[Hibernat] 데이터 한 개 출력하기 selectOne 예제

https://www.objectdb.com/java/jpa/query/execute

 

Query Execution in JPA - getResultList, getSingleResult

The Queryjavax.persistence.QueryJPA interfaceInterface used to control query execution.See JavaDoc Reference Page... interface defines two methods for running SELECT queries: Similarly, the TypedQueryjavax.persistence.TypedQueryJPA interfaceInterface used

www.objectdb.com