Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find "*_Table" classes for DBFlow in Android (Studio)

I am trying to use the library DBFlow in Android. I have used it before and in the older version (2.2.1) it used a $Table.field. Now it seems to have another format where we reference a new class by "_Table".

Example:

int taxBracketCount = SQLite.select(count(Employee_Table.name))
.from(Employee.class)
.where(Employee_Table.salary.lessThan(150000))
.and(Employee_Table.salary.greaterThan(80000))
.count();

Where and when are these "_Table" classes created? How do I access them? (Even if I wanted to use and older version, my newly created studio project do not create the $ files either. Some explaination of this, or both, would be nice)

like image 849
Yokich Avatar asked Jan 06 '23 02:01

Yokich


1 Answers

You need to run a successful build for the files to be generated. Make sure your code can compile, so remove any references to the "_Table" classes and run your project first and then you should be able to access them.

like image 118
user1809913 Avatar answered Jan 11 '23 01:01

user1809913