aspose file tools*
The moose likes JDBC and the fly likes Javaranch project Jenny the database code generator , any reason not to use with Java 6 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Javaranch project Jenny the database code generator , any reason not to use with Java 6 ?" Watch "Javaranch project Jenny the database code generator , any reason not to use with Java 6 ?" New topic
Author

Javaranch project Jenny the database code generator , any reason not to use with Java 6 ?

margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 318
    
    5

I am looking for a code generator to create the classes with CRUD methods for access to a database. Eclipse can generate the javabeans so I'm all set there. The project will use Bear's Frontman framework but no Hibernate, Spring, etc. There are many tables I have to create the classes for. They are very simple tables with little or no validation and I just need the CRUD methods that update the database. The database I'm using is SQLServer 2000.

I found Jenny on the ranch. Jenny generates the getters/ setters and the CRUD methods. The last post about Jenny is 08/09/2003 by Marilyn de Queiroz . Is Jenny still a good way to buld the small CRUD classes for a database?

Jenny Tutorial

Jenny code examples

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30293
    
150

There's nothing wrong with using Jenny. I'm curious why you prefer it over Hibernate or Open JPA though. Both are more widely used which makes them more useful in your career.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 318
    
    5

Hi Jeanne,
I am using Bear's Frontman framework, not sure about adopting others until I'm solid on that one. My short term goal is to find an automation to eliminate the errors and slow coding of the CRUD objects.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30293
    
150

If the goal is to minimize frameworks, I'd recommend using raw JDBC for this first app.
margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 318
    
    5

Yes I am using raw JDBC. The Eclipse plugin writes the getters / setters and that is nice. What I was hoping to find was a tool that could build the code like this so I don't have to write all those ps.setString, ps.setInt statements. Looks easy for a three field table but some of my tables have fourty fields and I like shortcuts. LOL....





UNLESS there is an easier way?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30293
    
150

margaret gillon wrote:
UNLESS there is an easier way?

It is good to use raw JDBC a couple times to learn it. Then the easier way of Hibernate/JPA becomes a time saver.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javaranch project Jenny the database code generator , any reason not to use with Java 6 ?