2014-07-19 2 views
11

나는 데이터 JPA 저장소를 봄에 다음 코드를 추가하려고 조직 :에 의해기본 삽입 쿼리

를 일으켰습니다. hibernate.hql.internal.ast.QuerySyntaxException 예기치 않은 토큰 : 행 1 열 (59)은 근처 VALUES [commit_activity_link 삽입 (commit_id, activity_id) VALUES (? 1, 2)]

난 w 어디 있어요 rong?

답변

21

나는 @Query

@Query(value = "insert into commit_activity_link (commit_id, activity_id) VALUES (?1, ?2)", nativeQuery = true) 
nativeQuery = true를 추가했다