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?
So, looks like its Stetho-side feature/bug (according this issue). Just ignore it in production.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With