  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | DAO | DAO 2004-01-14 - By Romulo M. Andrade
Back I have a basic doubt about DAO. I know that depends but I need to start.
My example is:
I have a table Customer.
How do I implement the DAO Patterns for the SQLs: insert, update and delete ?
Where do the SQLs stay ? Entity bean, class or Session Bean? Do I implement a session bean call a class with the procedures SQL?
The Pet Store doesn't have the insert methods. Is there a another good sample?
Thanks.
R�mulo Andrade.
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
<HTML><FONT FACE=arial,helvetica><HTML><FONT SIZE=2 PTSIZE=10 FAMILY= "SANSSERIF" FACE="Arial" LANG="8"> <BR> I have a basic doubt about DAO. I know that depends but I need to start.<BR> <BR> My example is:<BR> <BR> I have a table Customer.<BR> <BR> How do I implement the DAO Patterns for the SQLs: insert, update and delete ? <BR> <BR> Where do the SQLs stay ? Entity bean, class or Session Bean? Do I implement a session bean call a class with the procedures SQL?<BR> <BR> The Pet Store doesn't have the insert methods. Is there a another good sample? <BR> <BR> Thanks.<BR> <BR> R�mulo Andrade.</FONT></HTML> ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |