# typehandlers-threeten-extra
**Repository Path**: mirrors_mybatis/typehandlers-threeten-extra
## Basic Information
- **Project Name**: typehandlers-threeten-extra
- **Description**: MyBatis type handlers for ThreeTen Extra (http://www.threeten.org/threeten-extra/)
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-19
- **Last Updated**: 2026-01-03
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# MyBatis Type Handlers for ThreeTen-Extra
[](https://github.com/mybatis/typehandlers-threeten-extra/actions/workflows/ci.yaml)
[](https://coveralls.io/github/mybatis/typehandlers-threeten-extra?branch=master)
[](https://maven-badges.herokuapp.com/maven-central/org.mybatis/mybatis-typehandlers-threeten-extra)
[](https://oss.sonatype.org/content/repositories/snapshots/org/mybatis/mybatis-typehandlers-threeten-extra/)
[](https://www.apache.org/licenses/LICENSE-2.0.html)

The MyBatis type handlers supporting types of [ThreeTen-Extra](https://www.threeten.org/threeten-extra/).
## Installation
If you are using Maven add the following dependency to your `pom.xml`:
```xml
org.mybatis
mybatis-typehandlers-threeten-extra
1.0.0
```
If you are using Gradle add the following dependency to your `build.gradle`:
```groovy
compile("org.mybatis:mybatis-typehandlers-threeten-extra:1.0.0")
```
## Configuration
Add following configuration to your `mybatis-config.xml`:
```xml
```
## Supported types
The following type handlers are supported:
| Type handler | ThreeTen-Extra type | JDBC types |
| ------------ | ------------------- | ---------- |
| `DayOfMonthTypeHandler` | `org.threeten.extra.DayOfMonth` | `INTEGER` |
| `DayOfYearTypeHandler` | `org.threeten.extra.DayOfYear` | `INTEGER` |
| `SecondsTypeHandler` | `org.threeten.extra.Seconds` | `INTEGER` |
| `MinutesTypeHandler` | `org.threeten.extra.Minutes` | `INTEGER` |
| `HoursTypeHandler` | `org.threeten.extra.Hours` | `INTEGER` |
| `DaysTypeHandler` | `org.threeten.extra.Days` | `INTEGER` |
| `WeeksTypeHandler` | `org.threeten.extra.Weeks` | `INTEGER` |
| `MonthsTypeHandler` | `org.threeten.extra.Months` | `INTEGER` |
| `YearsTypeHandler` | `org.threeten.extra.Years` | `INTEGER` |
| `YearWeekTypeHandler` | `org.threeten.extra.YearWeek` | `VARCHAR` or `LONGVARCHAR` |
| `YearQuarterTypeHandler` | `org.threeten.extra.YearQuarter` | `VARCHAR` or `LONGVARCHAR` |
> **Note:**
>
> For more details of type handler, please refer to "[MyBatis 3 REFERENCE DOCUMENTATION](https://www.mybatis.org/mybatis-3/configuration.html#typeHandlers)".