ThreeTen Extra JPA Persistence

Utilities for persisting ThreeTen Extra data using JPA 2.2

License

License

Categories

Categories

ThreeTen-Extra General Purpose Libraries Date and Time
GroupId

GroupId

com.stevenpaligo
ArtifactId

ArtifactId

threeten-extra-jpa
Last Version

Last Version

2.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

ThreeTen Extra JPA Persistence
Utilities for persisting ThreeTen Extra data using JPA 2.2
Project URL

Project URL

https://github.com/stevenpaligo/threeten-extra-jpa
Source Code Management

Source Code Management

https://github.com/stevenpaligo/threeten-extra-jpa.git

Download threeten-extra-jpa

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.threeten : threeten-extra jar 1.5.0

provided (1)

Group / Artifact Type Version
javax.persistence : javax.persistence-api jar 2.2

test (1)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.5.0

Project Modules

There are no modules declared in this project.

ThreeTen-Extra JPA

This project contains utilities for persisting objects from the ThreeTen-Extra library using the Java Persistence API (JPA).

Maven Central Javadoc License

Getting Started

Prerequisites

ThreeTen-Extra JPA requires Java 8+ and JPA. The first two portions of this project's version number correspond to the JPA version that is required (e.g. 2.2.0 requires JPA 2.2).

Installation

To include ThreeTen-Extra JPA in a Maven project, add the following dependency:

<dependencies>
  ...
  <dependency>
    <groupId>com.stevenpaligo</groupId>
    <artifactId>threeten-extra-jpa</artifactId>
    <version>${threeten-extra-jpa.version}</version>
  </dependency>
  ...
</dependencies>

For non-Maven projects, download the JAR from Maven's Central Repository. The list of dependencies can be found in the pom.xml file (see the source on GitHub)

Usage

Simply add this project as a Maven dependency or as a JAR on the classpath. The JPA converters will be discovered automatically.

The following table lists the valid combinations of ThreeTen-Extra classes and the database types:

ThreeTen-Extra Class JPA-Supported Type Database Type(s) Comments
TaiInstant BigDecimal DECIMAL, NUMERIC To correctly store the value, the database field must have a precision of 28 and a scale of 9
TaiInstant String CHAR, VARCHAR To correctly store the value, the database field must have a length of at least 35 characters
UtcInstant String CHAR, VARCHAR To correctly store the value, the database field must have a length of at least 30 characters

See the JavaDoc for more information.

Contributions

Contributions (bug reports, feature requests, etc.) are always welcome and should be coordinated through the GitHub Issues system.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache License Version 2.0. See the license file file for details.

Versions

Version
2.2.0