File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Simple DAO code generator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Simple DAO code generator" Watch "Simple DAO code generator" New topic

Simple DAO code generator

Siamak Saarmann
Ranch Hand

Joined: Aug 21, 2004
Posts: 78

I am trying to analyse,code,... for a relatively big application. I want to use DAO classes on JDBC (+ Servlets and a MVC architecture) to achieve this.

I have done this with PHP in past but now:

1- Classes are too complicated and big.
2- I change classes to often
3- I should use JDBC

So I am really in need of a DAO code generator which takes Oracle field specs (type, length etc) and generate ready to run DAO code.

I have used DAOGEN ( for some of classes successfully but as it is not a software on my computer I do not feel good. I need to be sure that it's always available.

DAOGEN is a good code generator (it supports Java/PHP, Oracle/MySQL/GenericSQL, Caching etc.).

I will appereciate if someone can show me a good DAO code generator software (preferably with Oracle support and also free ).


PhD Artificial Intelligence, OCJP1.6
Zeeshan Samdani

Joined: Oct 11, 2004
Posts: 8
Hi Mac,

You might want to consider using JDO for this purpose. JDO is an efficient way to map classes to data without bulky and difficult to maintain generated code.

JDO gives you flexibilty and access patterns for better querying and performance.

Zeeshan Samdani
[ November 08, 2004: Message edited by: Zeeshan Samdani ]
Pj Murray
Ranch Hand

Joined: Sep 24, 2004
Posts: 194
You can try out FireStorm/DAO for free at:

FireStorm/DAO Java code generator imports database schema definitions from SQL scripts or from live databases via JDBC and then generates a complete persistence tier based on the Data Access Object (DAO) design pattern. DAO is a core J2EE design pattern.

There's a tutorial with screenshots here:

PJ Murray
CodeFutures - Java Code Generation

[ December 09, 2004: Message edited by: PJ Murray ]
[ December 09, 2004: Message edited by: PJ Murray ]

PJ Murray -
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

PJ --

You apparently have not read our naming policy. It requires that you use a full, real (sounding) first and last name for your display name. We sometimes tolerate people using a company name when they post in Blatant Advertising, but if you're going to post in the regular forums, you must use a real name. You can change your display name here. Thanks.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Simple DAO code generator
It's not a secret anymore!