RethinkDB ORM for Java

A lightweight OR mapper for RethinkDB, written in Java.

License

License

Categories

Categories

ORM Data
GroupId

GroupId

de.jakobjarosch.rethinkdb
ArtifactId

ArtifactId

rethinkdb-orm
Last Version

Last Version

2.3.0-5
Release Date

Release Date

Type

Type

jar
Description

Description

RethinkDB ORM for Java
A lightweight OR mapper for RethinkDB, written in Java.
Project URL

Project URL

https://github.com/foxylion/rethinkdb-orm-java
Source Code Management

Source Code Management

https://github.com/foxylion/rethinkdb-orm-java

Download rethinkdb-orm

How to add to project

<!-- https://jarcasting.com/artifacts/de.jakobjarosch.rethinkdb/rethinkdb-orm/ -->
<dependency>
    <groupId>de.jakobjarosch.rethinkdb</groupId>
    <artifactId>rethinkdb-orm</artifactId>
    <version>2.3.0-5</version>
</dependency>
// https://jarcasting.com/artifacts/de.jakobjarosch.rethinkdb/rethinkdb-orm/
implementation 'de.jakobjarosch.rethinkdb:rethinkdb-orm:2.3.0-5'
// https://jarcasting.com/artifacts/de.jakobjarosch.rethinkdb/rethinkdb-orm/
implementation ("de.jakobjarosch.rethinkdb:rethinkdb-orm:2.3.0-5")
'de.jakobjarosch.rethinkdb:rethinkdb-orm:jar:2.3.0-5'
<dependency org="de.jakobjarosch.rethinkdb" name="rethinkdb-orm" rev="2.3.0-5">
  <artifact name="rethinkdb-orm" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.jakobjarosch.rethinkdb', module='rethinkdb-orm', version='2.3.0-5')
)
libraryDependencies += "de.jakobjarosch.rethinkdb" % "rethinkdb-orm" % "2.3.0-5"
[de.jakobjarosch.rethinkdb/rethinkdb-orm "2.3.0-5"]

Dependencies

compile (7)

Group / Artifact Type Version
com.fasterxml.jackson.datatype : jackson-datatype-jsr310 jar 2.7.5
de.jakobjarosch.rethinkdb : rethinkdb-orm-annotations jar 2.3.0-5
com.fasterxml.jackson.core : jackson-databind jar 2.7.5
com.google.auto.service : auto-service jar 1.0-rc2
io.reactivex : rxjava jar 1.0.10
com.squareup : javapoet jar 1.7.0
de.jakobjarosch.rethinkdb : rethinkdb-pool jar 2.3.0-5

test (3)

Group / Artifact Type Version
org.assertj : assertj-core jar 3.4.1
org.slf4j : slf4j-simple jar 1.7.21
org.mockito : mockito-all jar 2.0.2-beta

Project Modules

There are no modules declared in this project.

RethinkDB ORM for Java

Build Status Maven Version License Maintenance

This is a lightweight OR mapper for RethinkDB and Java. It automatically maps your POJOs to a RethinkDB compatible data structure and vice versa.

What do I get?

  • Lightweight OR mapper using annotation processors
    • Support to map fields to other database field names
    • Support to ignore fields from model or database
  • Possibility to automatically create tables and inidices
  • Connection pooling support across threads (also standalone available)

How to use?

The integration is using annotation processors to generate the DAO classes. Ensure that your IDE has enabled annotation processing.

To get started you've to annotate your POJO.

@RethinkDBModel
public class MyModel {
   @PrimaryKey private String id;
   private ReqlPoint location;
}

The annotation processor will automatically generate a MyModelDAO class which can be used to create, read, update, delete your model (CRUD). It is also possible to stream the change sets.

The DAO can be used very easily.

try (Connection connection = RethinkDB.r.connection().connect()) {
    MyModelDAO dao = new MyModelDAO(connection);
    MyModel model = dao.read("2a22fda0");
    model.location = new ReqlPoint(12.234, 23.764);
    dao.update("2a22fda0", model);
}

More examples can be found here.

Configure as a dependency

The current version can be found here.

Maven

<dependency>
    <groupId>de.jakobjarosch.rethinkdb</groupId>
    <artifactId>rethinkdb-orm</artifactId>
    <version>{{ current-version }}</version>
</dependency>

Gradle

compile 'de.jakobjarosch.rethinkdb:rethinkdb-orm:{{ current-version }}'

Versions

Version
2.3.0-5
2.3.0-4
2.3.0-3
2.3.0-2
2.3.0-1