ActiveAndroid ORM in android

In this article, I am focusing about the ActiveAdroid Orm database in Android. I have already discussed with GreenDAO fast ORM in android. If you still not checked then please check this link GreenDao fast ORM in android. Yes, this is really fast no doubt but this is required to used when we required a large amount of data to store into the database for offline and sync with online. I would be recommended to use this powerful ORM.Now we need an SQLite database for a small application I would say to use the ActiveAndroid ORM.This is pretty easy to add in any application and configuration is also very simple. Now the question is why ORM and this kind of wrapper if already having android SQLite database and SQL query? I would say now the time is an object oriented based concept. ActiveAndroid ORM is object relation mapping concept. It is very easy to understand and does not require any complex SQL query if you want any data from the table.ActiveAndroid wrapper provides Object-Relational mapper for mapping the java classes to database tables and mapping java class member variables to the table columns. It does not require any raw query to get the information. It makes easy and pretty simple for developers because it is everything based on the object. Through the object, we can create and modify the table row. For more detail Check Official DocumentActiveAndroid.Before going through the code first check the uploaded video to understand What thing going to implement in this article. Here is uploaded video.

Thanks, for watching the video.Ok, Let's create an android project for building the ActiveAndroid database. First of all, we need to required configuration.1. Add the dependency into Gradle file.

build.gradle project level and app level

2. Create Main Application and initialize the ActiveAndroid and add this application in the AndroidManfest file. Here you can add meta tag for database name and version. Even you can give configuration for dynamic also but Here I am setting in application tag only.