mybatis-typehandlers-threeten-extra

MyBatis Type Handlers supporting ThreeTen-Extra

License

License

Categories

Categories

ThreeTen-Extra General Purpose Libraries Date and Time MyBatis Data ORM
GroupId

GroupId

org.mybatis
ArtifactId

ArtifactId

mybatis-typehandlers-threeten-extra
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

mybatis-typehandlers-threeten-extra
MyBatis Type Handlers supporting ThreeTen-Extra
Project URL

Project URL

https://github.com/mybatis/typehandlers-threeten-extra
Project Organization

Project Organization

MyBatis.org
Source Code Management

Source Code Management

http://github.com/mybatis/typehandlers-threeten-extra

Download mybatis-typehandlers-threeten-extra

How to add to project

<!-- https://jarcasting.com/artifacts/org.mybatis/mybatis-typehandlers-threeten-extra/ -->
<dependency>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis-typehandlers-threeten-extra</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.mybatis/mybatis-typehandlers-threeten-extra/
implementation 'org.mybatis:mybatis-typehandlers-threeten-extra:1.0.0'
// https://jarcasting.com/artifacts/org.mybatis/mybatis-typehandlers-threeten-extra/
implementation ("org.mybatis:mybatis-typehandlers-threeten-extra:1.0.0")
'org.mybatis:mybatis-typehandlers-threeten-extra:jar:1.0.0'
<dependency org="org.mybatis" name="mybatis-typehandlers-threeten-extra" rev="1.0.0">
  <artifact name="mybatis-typehandlers-threeten-extra" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.mybatis', module='mybatis-typehandlers-threeten-extra', version='1.0.0')
)
libraryDependencies += "org.mybatis" % "mybatis-typehandlers-threeten-extra" % "1.0.0"
[org.mybatis/mybatis-typehandlers-threeten-extra "1.0.0"]

Dependencies

provided (2)

Group / Artifact Type Version
org.mybatis : mybatis jar 3.4.4
org.threeten : threeten-extra jar 1.1

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-core jar 2.7.12
org.assertj : assertj-core jar 3.6.2

Project Modules

There are no modules declared in this project.

MyBatis Type Handlers for ThreeTen-Extra

Build Status Coverage Status Maven central Sonatype Nexus (Snapshots) License

mybatis

The MyBatis type handlers supporting types of ThreeTen-Extra.

Installation

If you are using Maven add the following dependency to your pom.xml:

<dependency>
  <groupId>org.mybatis</groupId>
  <artifactId>mybatis-typehandlers-threeten-extra</artifactId>
  <version>1.0.0</version>
</dependency>

If you are using Gradle add the following dependency to your build.gradle:

compile("org.mybatis:mybatis-typehandlers-threeten-extra:1.0.0")

Configuration

Add following configuration to your mybatis-config.xml:

<typeHandlers>
  <!-- ... -->
  <package name="org.mybatis.typehandlers.threetenextra"/>
</typeHandlers>

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

org.mybatis

MyBatis

Versions

Version
1.0.0