It was a lonely Valentine’s Day for me this year, so I decided to code a framework to practice my SQL, Java, design patterns and Android skills I gained this year. I came up with the idea that coding a lightweight object relational mapper framework would be exciting! :P Then the hack has began and continued on my spare times. What I was trying to achieve a really small framework so that everyone can use databases in their programs and handle common database usages **without writing SQL **so that all the Java objects are can be saved to and queried from database.
This is not a new idea if you are familiar with the concept already. This is called Object-Relational Mapping and there are hundreds of ORM tools including multi-million dollars projects use such as Entity Framework and Hibernate. As you might guess, those support almost all kinds of databases you might be familiar with and they are really cutting-edge software technologies.
Read article: Why ORMAN is better than other ORMs for you?
Motivation
It might seem so but I was not trying to reinvent the wheel.
Features I wanted to imitate from other ORM tools:
-
Map every entity Java class to database table and every field to database column.
-
Tables will be created automatically using Java classes and their fields.
-
Developer will be able to use database in a few lines of code – without writing SQL!