  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | 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 | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Separating SQL from code | Separating SQL from code 2004-04-08 - By Navjot Singh
Back you might wish to look into iBatis. i used it and it works great.
>-- --Original Message-- -- >From: An interest list for Sun Java Center J2EE Pattern Catalog >[mailto:J2EEPATTERNS-INTEREST@(protected)]On Behalf Of Jean-Christian >Imbeault >Sent: Thursday, April 08, 2004 6:02 AM >To: J2EEPATTERNS-INTEREST@(protected) >Subject: Re: Separating SQL from code > > >> From: Sean Brydon >> >> a couple strategies to consider. One is that you can >> externalize the SQL and put it into an XML file. This is >> discussed at http://java.sun.com/blueprints/patterns/DAO.html >> and is implemented in the JavaPetstore. This is mostly done >> for portability since sometimes SQL is not that portable. > >Thanks for the link. This seems to be exactly the kind of pattern/concept I >was looking for. Now I just need to figure out how it is implemented and >come up with a design that I can apply to our project. > >If anyone else has any information or links on this kind of SQL >externalization and how to implement it please let me know! > >> another strategy is to use CMP, Container Managed >> Persistence, with EJBs. > >EJBs are beyond my comprehension at the moment :( > >Thanks, > >Jc > >==================================================================== >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)
==================================================================== 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)
|
|
 |