“Got different size of tuples and aliases” exception after Spring Boot 2.0.0.RELEASE migration

前端 未结 7 672
轻奢々
轻奢々 2020-12-18 20:32
//imports, etc.

@Entity
@Table(name = \"TSTRANS\")
@SqlResultSetMappings(
        {                   
                @SqlResultSetMapping(name = TS_TRANS_EMP_STAT         


        
7条回答
  •  北海茫月
    2020-12-18 21:11

    It was a bug, now fixed: jira.spring.io/browse/DATAJPA-1280

    Add:

    @Query(nativeQuery=true) 
    

    at the top of a new method in the repository.

提交回复
热议问题