@Query annotation is used to write raw SQL queries · We need to set nativeQuery option to true, otherwise, JPA treats the query as a JPQL query.
確定! 回上一頁