Annotation and reflection based DAO (Data Access Object) approach for interacting with a database.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
sql
src
.gitignore
.travis.yml
LICENSE.txt
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

DAO Generator | Javadoc | Build Status |

This Library provides an annotation and relfection based DAO (Data Access Object) approach for interacting with a database.

It provides a mapping from your database tables, columns and attributes to your Java code, for DAO objects, which act as a container for the contents of a row of data in a database table.

Read more about DAO here: Core J2EE Patterns - Data Access Object


See an Example DAO here. What you have to define is your columns in the same order as in your CREATE TABLE statement. For MySQL, this can be done automatically with this script.

Each of your DAOs has to extend Dao, which is the base class for SQL (MySQL) database interaction. It implements interface IDao which defines what you can do with your DAO. All attributes must be public and be an Object. (No int, float, etc use Integer and Float instead).