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

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

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


        
相关标签:
7条回答
  • 2020-12-18 21:38

    I think this is the issue report in Spring Data JPA: https://jira.spring.io/browse/DATAJPA-1280

    As a workaround, you can downgrade to Spring Data release train Kay-SR4 (SR5 is the current latest version and is the version used in Spring Boot 2.0.0). Just add:

    <spring-data-releasetrain.version>Kay-SR4</spring-data-releasetrain.version>
    

    to your pom.xml's <properties> section.

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