DAO Generator Tool with Regular JDBC

I am looking for a good DAO Generator that creates classes with simple JDBC 4 and basic NetBeans generates classes and Java Beans or entities with JPA and Hibernate . I am looking for another tool like this, but I require that the generated classes not use third-party libraries, but only the JRE . I am grateful for the help.

+7
source share
2 answers

I think you might be interested in looking at the AuDAO source code (you can “use” the part that generates DAO and Beans and writes code that does something similar - it's open source)

this library does exactly what you describe: enter image description here

However, I think that you can miss this, the advantage of using tools like Hibernate is a free database connection for the developer. You do not need to know all the dialects of the database; Hibernate does. This is convenient because either production servers work with DB2, Oracle, or MySQL, and our Junit tests use SQLite, which has a different syntax.

Good luck

+6
source

Take a look at Telosys Tools, a simple code generator that works from a database model. This tool is free and very easy to use. See Website https://sites.google.com/site/telosystools/

Starting with version 2.1.1, some templates are available for the native JDBC DAO (see the blog http://telosys-tools.blogspot.fr/2015/03/telosys-tools-ver-211-whats-new.html ).

Just select the " persistence-native-jdbc-TT211 " package to create DAOs, interfaces, Beans (DTO), JUnit tests, ... All templates are free and available on GitHub ( https://github.com/telosys-tools )

+3
source

All Articles