Skip to content

BraisGabin/couchbase-lite-orm

Repository files navigation

Couchbase-Lite-ORM Build Status

This is the first approach to implement an ORM for Couchbase Lite in Java. I'm still working on it.

Main ideas

  • Couchbase Lite's API is pretty good, I wont hide it.
  • Couchbase Lite ORM only transform Documents to your domain Objects and vice versa.
  • You won't need to extend any class.
  • You will only need to annotate your classes.
  • This library will not use reflection. Reflection is too slow.

Download

Gradle:

compile 'com.braisgabin.couchbaseliteorm:couchbaseliteorm:0.1.0-SNAPSHOT'
provided 'com.braisgabin.couchbaseliteorm:couchbaseliteorm-compiler:0.1.0-SNAPSHOT'

You must add the Sonatype's snapshots repository:

repositories {
  maven { url 'https://oss.sonatype.org/content/groups/public' }
}

Or you can download the .jar directly from the Sonatype's snapshots repository.

Easter Egg

The annotations in Java have a weakness: their value can't be null. You can read this in the JSL:

Note that null is not a legal element value for any element type.

For more information I recommend read this Stack Overflow answer.

For this reason I'm forced to use the magic string "☕️💩". So, if one of your types is named "☕️💩" you have found the Easter Egg!

License

Apache License 2.0

About

A Java ORM for Couchbase Lite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published