Solved

what is the best J2EE code generation tool

Posted on 2008-06-26
3
384 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
ID: 21872818
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
ID: 21875644
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 25

Expert Comment

by:Tomas Helgi Johannsson
ID: 22043483
      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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 81
topping2 challenge 13 83
Why does the Android Studio logcat show this error when the user presses the button? 2 42
java jdbc batch example 8 23
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

863 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

25 Experts available now in Live!

Get 1:1 Help Now