Tag Archives: Can not issue data manipulation statements with executeQuery().

Can not issue data manipulation statements with executeQuery().

I use JPA to report this error when I perform the update operation
after Baidu has done some work, just add the @ modifying annotation on the method

    @Transactional
    @Modifying
    @Query(name = "edit",nativeQuery = true,value =
    "UPDATE t91_gshs_xcpxtz_pxmx SET #{#gshsXcpxtzPxmx}")
    void edit(GshsXcpxtzPxmx gshsXcpxtzPxmx);