You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/02/18 01:56:37 UTC

[GitHub] [incubator-shardingsphere] liwu3230 opened a new issue #4345: Springboot+Jpa+sharding-jdbc 跨多表查询走结果归并后,返回的数据类型不是包装类而被转成有默认值的基本数据类型

liwu3230 opened a new issue #4345: Springboot+Jpa+sharding-jdbc 跨多表查询走结果归并后,返回的数据类型不是包装类而被转成有默认值的基本数据类型
URL: https://github.com/apache/incubator-shardingsphere/issues/4345
 
 
   ![image](https://user-images.githubusercontent.com/39552013/74697000-61c07000-5234-11ea-87b1-499fbaae63d3.png)
   ![image](https://user-images.githubusercontent.com/39552013/74697059-7bfa4e00-5234-11ea-8ce8-9669fa427553.png)
   图片中joinMsgTicketPmsMsgStatereport.get("result")对应的java类型是Integer,数据库字段类型为int(11),单表查询的时候如果查询结果中result字段为null,可以映射为null回来,但是如果是跨多表查询,走了结果归并的话,返回的会是0 ,这与直接执行sql的结果不一致,在很多业务场景中null是有意义的
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] terrymanu closed issue #4345: Springboot+Jpa+sharding-jdbc 跨多表查询走结果归并后,返回的数据类型不是包装类而被转成有默认值的基本数据类型

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #4345: Springboot+Jpa+sharding-jdbc 跨多表查询走结果归并后,返回的数据类型不是包装类而被转成有默认值的基本数据类型
URL: https://github.com/apache/incubator-shardingsphere/issues/4345
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] liwu3230 commented on issue #4345: Springboot+Jpa+sharding-jdbc 跨多表查询走结果归并后,返回的数据类型不是包装类而被转成有默认值的基本数据类型

Posted by GitBox <gi...@apache.org>.
liwu3230 commented on issue #4345: Springboot+Jpa+sharding-jdbc 跨多表查询走结果归并后,返回的数据类型不是包装类而被转成有默认值的基本数据类型
URL: https://github.com/apache/incubator-shardingsphere/issues/4345#issuecomment-587238334
 
 
   引入的依赖是 <dependency>
               <groupId>org.apache.shardingsphere</groupId>
               <artifactId>sharding-jdbc-core</artifactId>
               <version>4.0.0</version>
               <exclusions>
                   <exclusion>
                       <artifactId>snakeyaml</artifactId>
                       <groupId>org.yaml</groupId>
                   </exclusion>
                   <exclusion>
                       <artifactId>guava</artifactId>
                       <groupId>com.google.guava</groupId>
                   </exclusion>
               </exclusions>
           </dependency>
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] terrymanu commented on issue #4345: Springboot+Jpa+sharding-jdbc 跨多表查询走结果归并后,返回的数据类型不是包装类而被转成有默认值的基本数据类型

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #4345: Springboot+Jpa+sharding-jdbc 跨多表查询走结果归并后,返回的数据类型不是包装类而被转成有默认值的基本数据类型
URL: https://github.com/apache/incubator-shardingsphere/issues/4345#issuecomment-587247238
 
 
   **For English only**, other languages will not accept.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services