-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How are column names determined? #10
Comments
The column should be snake case: |
Are the column names according to the variables used in object classes..and how can we execute where clauses using this library? |
The column names are camelized counterparts of the variables, so: NoOfSeen (POJO) -> no_of_seen (SQLite) Frederic Yesid Peña Sánchez Date: Wed, 11 Mar 2015 12:24:52 -0700 Are the column names according to the variables used in object classes..and how can we execute where clauses using this library? — |
@bhuvneshvarma There are examples in the README |
i am having issues using Contraints.If i don't use contraints data loads perfectly.But if i try running following query-
where noOfSeen is the variable of object class.I assumed that the table in [persistence][2] creates column name according to the variable name in object class.
but i get following exception
android.database.sqlite.SQLiteException: no such column: noOfSeen (code 1): , while compiling: SELECT * FROM videos ORDER BY noOfSeen
How are column names determined while creating table through this wrapper.How can i use following query of normal database in this wrapper?
The text was updated successfully, but these errors were encountered: