I’m searching for free and simple DAO generator for java (it needs to create entities/bens from db tables/views and generate basic CRUD code). Currently, I`m using DAO4J which lacks some functionality like views mapping. I know that there are frameworks like Hibernate but I dont need such robust framework.
Some things this framework should have to do:
- Generate CRUD operations with standard SQL queries and not compile-time typesafe queries
- Doesn’t have session concept like hibernate
- Will not automatically close connection
- JDBC Connection can be configured through code
None of these are perfect matches, but both rock, in their own individual way:
Controllers and more for you.
But I’d say the winner is Spring Data. It offers a simple but powerful abstraction over many different underlying data store technologies and generates daos for you automatically. Here’s a presentation of Spring Data JPA.
Unfortunately Spring Data has not been released in final versions yet.