Solved

what is the best J2EE code generation tool

Posted on 2008-06-26
3
383 Views
Last Modified: 2008-07-25
what is the best J2EE code generation tool ?

i will give database table it has to generate value object,DAO,sessionbean,servlet and jsp(all the DB fields should be displayed text box fields)

servlet sample file.

doPost()
{
EmpVO emp = new EmpVO();

emp.empId= request.getParameter("empid");
emp.empName= request.getParameter("empName");
emp.sal= request.getParameter("sal");
emp.empdate= request.getParameter("empdate");


remote.create(emp);
}
0
Comment
Question by:chaitu chaitu
3 Comments
 
LVL 10

Accepted Solution

by:
Nellios earned 500 total points
Comment Utility
Netbeans provides such functionality.

It allows to do the following provided a connection to a database.
1) Create Entity Class from Database.
2) Create Session Beans from Entiy Classes.
3) Create CRUD JSF from Entity Classes.

Here is an example:
http://www.netbeans.org/kb/61/web/jsf-jpa-crud-wizard.html
0
 
LVL 20

Author Comment

by:chaitu chaitu
Comment Utility
I thought of using Velocity template engine.

how can i give database table to that engine so that it should generate MVC type java files..
0
 
LVL 24

Expert Comment

by:Tomas Helgi Johannsson
Comment Utility
      Hi!

I like Nellios reccommend using Netbeans  
It's a great Java IDE tool for all kinds of Java coding and has many plugins which you can download
and use.

Regards,
    Tomas Helgi  
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now