Dependency Setup

In order to setup ActiveJDBC with Kotlin, add the ActiveJDBC dependency as well as the Kotlin module:


Setting up instrumentation is not any different, please follow instructions here.


Unlike the Java layer, the Kotlin layer offers two similar ways of setting up a model.

Approach #1

First define an entity

Then use it as in Java

Approach #2 (with English inflections)

The first class is only for the entity itself

The second class stands for the table and its name matches English inflection (Person => People)


How to comment

The comment section below is to discuss documentation on this page.

If you have an issue, or discover bug, please follow instructions on the Support page