greendao Questions

4

how to solving SQLiteFulException in greenDao when I delete record from table? this is my stacktrace : android.database.sqlite.SQLiteFullException: database or disk is full (code 13) at android.d...
Stalagmite asked 16/6, 2016 at 7:39

4

Solved

I'm using GreenDAO for database handling in Android. When performing many database changes (> 15.000) I get this error Message: The connection pool for database '/data/data/...' has been unable ...
Gauldin asked 31/7, 2012 at 14:29

6

I am using the following ProGuard rules: -keepclassmembers class * extends org.greenrobot.greendao.AbstractDao { *; } -keep class **$Properties -keep class org.greenrobot.greendao.** -keepclassm...

2

Solved

I wanna to get top some records from my table, but GreenDAO doesn't provide it. Like this: SELECT TOP 1 * FROM table_name In LINQ you can get top of records with Take(), is there any solution ...
Anxiety asked 20/10, 2012 at 5:48

1

Solved

GreenDAO supports DaoMaster.dropAllTables() and DaoMaster.createAllTables(). I'm looking for similar functionality in RoomDB. Does RoomDB supports this functionality ?? The use-case for this funct...
Mickey asked 16/6, 2020 at 10:3

4

is there a way to sort by a field in a related table with greenDao? E.g. I have a table of cars and a table of drivers. Each car has a driver. Now I want to query for ( e.g. blue ) cars and sort by...
Arnoldarnoldo asked 16/4, 2013 at 16:43

2

I tried to use an old android application, that's use Green Dao such us database also this applicatioh had a flavour, so I compile and I install the apk but the app wan't start it gives this except...
Marga asked 15/12, 2015 at 10:39

4

Solved

I have seen another question about schema upgrade/migration using green dao (here) There are lots of links in that answer for a good pattern to use when doing schema upgrades - however there are n...
Perpetrate asked 22/4, 2013 at 18:27

6

Solved

Currently I'm doing it like this: DaoMaster.dropAllTables(getDb(), true); DaoMaster.createAllTables(getDb(), true); but then, when I'm trying to add entity to the database, I'm getting crash log...
Busiek asked 29/4, 2013 at 8:26

2

Consider I have a model : Company 1 - N Person I want to display a list of persons with their names and their company's name. But not every person has a company. I order to avoid that every cal...
Guelph asked 19/8, 2016 at 8:19

3

Solved

I have an Android Project, using Android Studio 2.3, which uses GreenDAO to generate the classes to interact with the SQLite database. The DaoGenerator project always worked before... but today I j...
Woolard asked 16/3, 2017 at 19:17

2

I have a table which a column is a string with three characters, each character has a value 0 or 1. I'd like to select those rows according to the case. I'd like to perform a query like that: SEL...
Cellaret asked 28/5, 2016 at 15:47

2

I'm having a go with greenDAO and so far it's going pretty well. One thing that doesn't seem to be covered by the docs or website (or anywhere :( ) is how it handles thread safety. I know the basi...
Precipitant asked 22/6, 2014 at 23:0

7

Solved

I'm evaluating GreenDAO for consideration in a commercial Android app I will be working on and wanted to determine the migration path for schema updates. Am I correct in asserting that I would hav...
Alpheus asked 14/11, 2012 at 4:41

1

Solved

i want to delete rows from a table based on condition. like "delete from Table where Name='Value'" here i am using greenDAO database.
Taligrade asked 10/4, 2017 at 12:43

3

I am using greenDAO and I have successfully generated all necessary classes and entities and I can see that my table has been created, however after putting breakpoints on the line to replace, I ge...
Theater asked 24/6, 2016 at 6:53

2

Solved

Does GreenDao supports unique constraint on multiple columns? Equivalent of the following: create table projects ( _id integer primary key autoincrement, project_type text, name text, unique (...
Accoucheur asked 27/2, 2014 at 13:39

2

Solved

I have 2 databases in the project, one of them created when I open the app, the other is provided with the assets. When DaoSession is generated the DaoSession is created for all models. also the ...
Nachison asked 19/2, 2017 at 15:42

1

Solved

I am using greendao ORM. I am trying to encrypt my database using SQLCipher. Greendao automativally supports sqlcipher. So I wrote the following code for encryption. DaoMaster.DevOpenHelper helpe...
Alienism asked 9/2, 2017 at 3:37

2

Solved

I have two entities Generated using Greendao generator. The two entities are Hospital and Patient. There exists a one to many relationship between Hospital and Patient. So one hospital can have mul...
Retrusion asked 13/12, 2016 at 2:7

2

Solved

I am using greendao to maintain SQL database on Android. Right now I am facing a problem of generating entity with two columns as primary key. To be clear I have column1 and column2 both of them ar...
Cogswell asked 18/11, 2016 at 13:56

1

why create duplicate package when generate library greenado? this is generator private static final String PROJECT_DIR = System.getProperty("user.dir"); public static void main(String[] args...
Acanthoid asked 8/10, 2016 at 18:32

6

Solved

I'm looking for a clear step-by-step explanation on how to import GreenDao in Android Studio. I've used it before in AS, but failed to get it to work again. There are some tutorials out there, but...
Tartuffe asked 17/9, 2014 at 10:17

1

Solved

How to encrypt sqlite database in android with sqlchipher while using greenDao orm. I have searched this many time in SO , but didn't find any working solution .
Astrict asked 22/9, 2016 at 11:17

3

Solved

I've just started using greenDAO. How do I add an Enum property? What I've Thought of: using the addIndex property of an entity. private static void main() { // TODO Auto-generated method stub ...
Regular asked 31/7, 2013 at 4:24

© 2022 - 2024 — McMap. All rights reserved.