File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Simple DAO code generator

Siamak Saarmann
Ranch Hand

Joined: Aug 21, 2004
Posts: 77
Hello,

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 (http://titaniclinux.net/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 ).

Regards,
Mac


PhD Candidate: Distributed and Parallel Systems, Simulation and Modeling
Zeeshan Samdani
Greenhorn

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
www.powermapjdo.com
[ 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:

http://www.codefutures.com/download

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:

http://www.codefutures.com/products/firestorm/tutorial/



PJ Murray
CodeFutures - Java Code Generation
http://www.codefutures.com

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

PJ Murray -
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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: http://aspose.com/file-tools
 
subject: Simple DAO code generator
 
Similar Threads
Why do we need a framework other than JDBC to access DB?
i need code for jdbc framework?
Free DAO for JDBC generator
Analysis Paralysis - JDBC Application Options
Update SCBCD1.4 by January2006