Realm Blog

Realm Java 0.72

We just released a Realm Java update to this website and to Maven. It includes support for Eclipse, Link Queries, Sorting on more field types, Transaction Rollback and more!

Eclipse Support

This was the most commonly asked question and we streamlined the process. The distribution file now includes an “eclipse” folder. Its contents need to be copy-pasted into the libs folder of the Eclipse project and the annotation processor needs to be enabled. For more informations on how to do it please refer to the documentation.

It is now possible to create queries that will traverse links and link lists. The syntax looks like:

RealmResults<Person> owners = realm.where(Person.class)
                                   .equalTo("", "Rex")

This will find all people who have at least one dog named “Rex”. For more informations and examples please refer to our documentation.

Improved Sorting

It is now possible to sort on the following field types: boolean, byte, short, int, long, float, double, Date, and String.

Transaction Canceling

This allows avoiding committing a transaction in case an error occurs. Like this:

Dog dog = realm.where(Dog.class).equalTo("name", "Rex").findFirst();
try {
    String dogName = getDogName(); // This might throw
} catch(SomeException e) {

A common use case for transaction canceling are forms. You can now more easily manage the creation of objects where properties come from user operated forms. Again, for more informations and examples please refer to the documentation.


As usual your feedback is very important to us! Keep it coming and help Realm get better and better with each release! Please let us know what you need on GitHub or realm-java.

Realm Team

At Realm, our mission is to help developers build better apps faster. We provide a unique set of tools and platform technologies designed to make it easy for developers to build apps with sophisticated, powerful features — things like realtime collaboration, augmented reality, live data synchronization, offline experiences, messaging, and more.

Everything we build is developed with an eye toward enabling developers for what we believe the mobile internet evolves into — an open network of billions of users and trillions of devices, and realtime interactivity across them all.

Get more development news like this