linghengqian commented on issue #17752:
URL: 
https://github.com/apache/shardingsphere/issues/17752#issuecomment-1136058752

   - @complone  Thank you very much for your help! 
   
   - Through the introduction of the `java.time.temporal.TemporalQueries` 
class, the support of four JSR-310 related classes has been successfully 
introduced into the `IntervalShardingAlgorithm`, namely `java.time.LocalTime`, 
`java.time.OffsetTime`, `java.time.LocalDate`, `java.time.chrono.JapaneseDate`.
   
   - Due to my unfamiliarity with `java.time.chrono.JapaneseDate`, its 
`DateTimeFormatter` looks like `DateTimeFormatter.ofPattern("Gy年MM月dd日")`. 
Under the premise of the Japanese calendar system, I can't build a unit test, I 
hope a friend can make it up.
   
   - In addition, since `TemporalQueries` does not specify more implementations 
(at least not from the perspective of JDK 8), the following JSR-310 related 
classes are still not supported in `IntervalShardingAlgorithm` for Mybatis.
       - `java.time.Year` (JDBC Type is INTEGER in Mybatis)
       - `java.time.Month` (JDBC Type is INTEGER in Mybatis)
       - `java.time.YearMonth` (JDBC Type is VARCHAR or LONGVARCHAR in Mybatis)
   - Hope some friends can submit additional PR.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to