title: How to use Android Room with POJOs provided by an external library?
body: <p>This is a clarification of my previous question <a href="https://stackoverflow.com/questions/51902935/how-to-use-android-room-on-entities-without-fields">How to use Android Room on entities without fields?</a>.</p>
  
  <p>My use case is that I am using a Java JAR library provided by a third party which contains many POJOs that I want to store and retrieve via Android Room. Clearly I cannot annotate the fields in a class that I don't have the source code for. The internal structure of the POJOs provided is a black box, all I have access to are setters and getters.</p>
  
  <p>Imagine for example I want to use instances of <code>android.graphics.Rect</code> with Room.</p>