Questions tagged [greendao]

greenDAO is an object/relational mapping (ORM) tool for Android. It offers an object oriented interface to the relational database SQLite. ORM tools like greenDAO do many repetitive tasks for you and offer a simple interface to your data.

greenDAO's primary features:

  • Fast & slim: designed for Android and SQLite
  • Support for entity relations
  • Query builder
  • Code generation

Links:

592 questions
-1
votes
1 answer

How to copy dbsqlite file from assets into a app directory in real device

I have made all the database and was working on emulator so injection of database was easy using the Android device monitor. But in real device I have to programmatically copy it from the Assets folder to the app directory . And I have used so many…
Allay Khalil
  • 674
  • 3
  • 11
  • 31
-1
votes
2 answers

How to create database in assets folder using greendao

I have created the database and populate it. and put back it in the emulator. But problem come when I have to make the Apk. Then I realize that I have to put database in the apk and to ship with it. So I searched for it and got the answer and that…
Allay Khalil
  • 674
  • 3
  • 11
  • 31
-1
votes
1 answer

How to insert records in two tables having to-one relationship using greendao in android

Below the code for generating and establishing to-one relationship in greendao private static void addPersonInfo(Schema schema) { Entity person=schema.addEntity("Person"); person.addIdProperty().primaryKey().autoincrement(); …
Baqir
  • 717
  • 1
  • 7
  • 20
-1
votes
1 answer

Why doesn't GreenDao support view in database?

It's very important every ORM can support view, like Entity framework. I've a big problem, when I want to make a query and get data from two or more tables. I want to get the data in a special class. ---Edit--- For example: Table1: tblProfile …
NrNazifi
  • 1,621
  • 3
  • 25
  • 36
-2
votes
1 answer

Sort in GreenDAO

Raw query: SELECT * FROM SAVED_JOB2 S, JOB J WHERE J._id=S._id ORDER BY DATE_SAVED DESC How can I achieve sort for column in JOIN table. I have tried: QueryBuilder queryBuilder =…
Zarul Izham
  • 569
  • 5
  • 17
-2
votes
1 answer

How to get data from SQLite database using GreenDao

I am using greendao for the first time. and it is going good. I have generated code and entities. I have put the basic data and checked it using sqlite browser and all data is there in specific fields. Now there are some method in the dao class and…
Allay Khalil
  • 674
  • 3
  • 11
  • 31
-3
votes
1 answer

how to add a new DAO class in greendao without overwriting the existing structure

I have just been doing a quick crash course in greenDAO because I have taken over development of an app that is heavily dependent on greenDAO . Basically I need to add an extra table and I figured I cant add another table to a DAO class that already…
Zidane
  • 1,696
  • 3
  • 21
  • 35
1 2 3
39
40