org.hibernate.QueryException: JPA-style positional param was not an integral ordinal

后端 未结 2 2030
盖世英雄少女心
盖世英雄少女心 2021-01-03 19:49

I have the following JPQL request;

@Query(value = \"select req_t \" +
        \"from TransactionRelation tr \" +
        \"inner join tr.requestTransaction r         


        
相关标签:
2条回答
  • 2021-01-03 20:35

    It happened to me, I had a ' ; ' char at the end of my query, copy pasted from my database querying tool :

    @Query(value = " DELETE FROM reunion WHERE id = ?1; ", nativeQuery = true)
    
    0 讨论(0)
  • 2021-01-03 20:41

    You have no whitespace between lines

    "and req_t.receiver.id=?2 and req_t.requestType in ?3" +
        "and NOT EXISTS
    

    also check that the ?3 param is not empty list

    0 讨论(0)
提交回复
热议问题