title: Realm and auto increment Behavior (Android)
body: <p>I'm trying to get data from Realm using an ID as a reference. However, when querying for an ID, I've found that Realm is giving me the same ID for all elements (ID of 0). Why doesn't the ID auto-increment when I use the <code>@PrimaryKey</code> annotation on the model's ID?</p>
  
  <p>Here's the shortened class for the model:</p>
  
  <pre><code>public class Child_pages extends RealmObject {
      @PrimaryKey
      private int id_cp;
  
      private int id;
      private String day;
      private int category_id;
  </code></pre>
  
  <p>And the query I'm executing is: <code>realm.where(Child_pages.class).equalTo("id_cp",page_id).findFirst()</code></p>