4

I'm writing an application for Android using DBFlow as ORM library. So, here is one of my tables model:

@Table(database = Database.class)
public class Language extends BaseModel {
    @PrimaryKey(autoincrement = true)
    long id;

    @Column
    String key;

    @Column
    String title;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    /* .. Other setters and getters .. */
}

Everything works pretty good, but when I take a look at my DB inspector (I'm using Stetho), I can see 2 identical "id" column:

Its a little bit embarrassing and redundantly.. Isn't it? Is it OK, and what is the cause of this behavior? And if it is not OK, how can I do it right?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
tehcpu
  • 934
  • 1
  • 11
  • 23
  • 1
    in most of the db tool one more column shown is an row id which shows row count i am not sure which tool u using to browse db you can check by deleting any row form top and check that both id values are identical or different – Pavan May 01 '17 at 19:48
  • 1
    You are incredibly right, it seems like it's a Stetho feature :D – tehcpu May 01 '17 at 19:57

1 Answers1

8

So, looks like its Stetho-side feature/bug (according this issue). Just ignore it in production.

tehcpu
  • 934
  • 1
  • 11
  • 23