I wrote a code generator for Entity Beans.  THis is fairly easy because the
DB meta data can tell you about the tables and there relationships.  This
code is core to much of the system that I work on and now I can add code gen
for other repetitive tasks that access the entity layer.  When writing code
gens you need to understand the task (it's repetitive nature) very well.
After you write parts by hand a couple of times, you will identify how the
task should be done with a code generator.


>From: Sachdeva Deepika <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Code Generator
>Date: Tue, 27 Feb 2001 16:09:56 +0530
>
>Hi,
>
>Requirement:
>
>We wish to create a Code Generator, which will dynamically generate the
>Code
>files for the screen layout and database handling. These screens might
>extend across more than 1 tables. This will be used for an application
>which
>can be accessed over the Internet by a number of users. There are no
>distributed requirements for this application. The screen layout will be in
>JSP, and we need to use Java Beans/EJB along with it.
>
>Doubts:
>
>The following doubts exist:
>1.      Is it advisable to use EJB's or will a simple bean model using MVC
>suffice.
>2.      In case we use EJB, which is better CMP or BMP. Remember that we
>span multiple tables.
>3.      In case we use BMP, then is it practical to write a code generator
>for BMP's - I mean is it repetitive code, and is it possible to write it by
>a utility.
>
>Thanks,
>Deepika
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to