Questions tagged [greendao3]
27 questions
0
votes
1 answer
Cannot complete build because of serializationVersionUID warning
We are currently using greenDAO3 in this project. I believe we were using the greenDAO2 at some point because it seems that we were using the legacy generator class.
So I am attempting to add a new table to the database for a new feature in our…

Dustin K
- 150
- 2
- 11
0
votes
1 answer
Greendao 3, make users table with no duplicate user names
I ask this question after searching for hours for the solution to this problem and did not find it.
I have build a database with three columns: username, password and age.
I am able to isert new users and update them, but I want it to be impossible…

Daniel blue
- 3
- 3
0
votes
0 answers
Android GreenDao update database scheme
I have an encrypted database and in this database I have some table. Now I would like to add an extra column to one of my table, but the onUpgrade() method never called.
I init my database like this:
private void initDatabase(){
if…

just
- 1,900
- 4
- 25
- 46
0
votes
0 answers
GreenDAO 3 with Android studio
I used to work with GreenDAO in Android Studio, in 2.1.0 version, to include GreenDAO to my project, I will create a generator module. In the module's build.gradle, I will add this line.
compile 'de.greenrobot:greendao-generator:2.1.0'
Then I will…

Andiana
- 1,912
- 5
- 37
- 73
0
votes
1 answer
How we can reslove Greendao DB close error?
When we can create greendao application We didn't get any default method to close the greendao db So how we can close the db on Application class
because we add below code on Application class
static class YourAsyncTask extends AsyncTask {
…

mbpatel
- 501
- 1
- 5
- 19
0
votes
1 answer
how do I get the DaoSession in a project library?
Good day, sorry for my bad English I'm using google translate, I'm new using greendao, I've read many tutorials in interner and all show an example of how to run it inside an activity, ie get the DaoSession as well:
DaoSession daoSession = ((App)…

Roberto Fernandez
- 52
- 2
- 8
0
votes
0 answers
How does greenDao @toMany relation deletion procedure work?
So, I have two models: Document and Item. Table creation and insertion works just perfect. What I want to know is that if I do something like…

Farid
- 2,317
- 1
- 20
- 34
0
votes
1 answer
greenDAO update and updateInTx not working
I'm using greenDAO 3.1 for one of my projects. Since I needed my id to be UUID I've decided to store it as ByteArray. Now the problem is I can't update my entities using update or updateInTx method and I have to use insertOrReplace or…

BehzadBx
- 67
- 9
0
votes
2 answers
Could not find method greendao() for arguments on project
While building the project after adding
apply plugin: 'org.greenrobot.greendao'
greendao {
schemaVersion 2
}
and
compile 'org.greenrobot:greendao:3.2.0'
in dependencies, project is showing error : "Could not find method greendao() for…

priyankvex
- 5,760
- 5
- 28
- 44
0
votes
0 answers
GreenDao - Android - How to listen to DB change using GreenDao
I'm using GreenDao 3 and I'd like to know what is the URI to be used to listen to DB changes.
I'm using this code:
Uri uri = Uri.parse("content://" + BuildConfig.APPLICATION_ID +…

Douglas Fornaro
- 2,017
- 2
- 22
- 30
0
votes
1 answer
Seed GreenDao database on Android
I'm using GreenDAO for an Android project for the first time, and was wondering how to seed the database for first-time users? Say for instance i have a table and want 5 rows inserted on behalf of the user.
Also, i might add new tables in future…

Jakob Kristensen
- 1,647
- 3
- 12
- 22
0
votes
1 answer
Android GreenDao conditional unique property
How can I create conditional unique property with greendao?
I have an entity and I would like to create two unique property, but with a condition.

just
- 1,900
- 4
- 25
- 46