Sign in Go Pro

Storing Data in Android with Room

@Relation annotation

11/13/2018

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

Overview

In this lesson, we'll describe what the Relation annotation is and show how it can be used to simplify some queries which handle relationships.

Relation is a convenience annotation which can be used to automatically fetch relation entities.

Summary of Content:

  • Benefits of Relation annotation
  • When you can use Relation
  • Which restrictions might prevent you from using Relation annotation
  • Why these restrictions apply, and why they are actually a feature of Room
  • How you create a POJO which makes use of Relation annotation
  • Why you should also use a Transaction annotation when using Relation

Links:

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in Storing Data in Android with Room