Chapter 27. Java 8 extension

Table of Contents

Description
Including in a project
Usage

Description

Java 8 module allows to use java.time.LocalTime, java.time.LocalDate and java.time.LocalDateTime types for entity attributes

Including in a project

Maven

<dependency>
    <groupId>org.apache.cayenne</groupId>
    <artifactId>cayenne-java8</artifactId>
    <version>4.0.B2</version>
</dependency>

Gradle

compile 'org.apache.cayenne:cayenne-java8:4.0.B2'

Usage

This module doesn't require any additional setup, you can just use new data types in your model.