  | 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 | | JSP - A mailing list about Java Server Pages specification and reference | | 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 | |
Struts & Hibernate
|
|
|
  | | | DAO - question about | DAO - question about 2005-05-12 - By Steven Randolph
Back Hello Maya,
You might want to take a look at www.realmethods.com. The code generator would let you see how DAOs are tied to using Hibernate, which really simplifies targeting all different types of DB.
Good luck,
Steven -- -- Original Message -- -- From: Maya menon To: J2EEPATTERNS-INTEREST@(protected) Sent: Thursday, May 12, 2005 12:15 PM Subject: DAO - question about
Hi,
I am thinking about using DAO for our project for doing database calls and transactions. While we implement this pattern , shall I need to use factory pattern ? I was reading in Core J2Ee patterns :
The DAO pattern can be made highly flexible by adopting the Abstract Factory [GoF] and the Factory Method [GoF] patterns.
Is this a true statement ? My datasource is Oracle and I will be having couple of DAO classes specific to actions.
Please advice,
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. ================ ==================================================== 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) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2900.2627" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hello Maya,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>You might want to take a look at <A href="http://www.realmethods.com">www.realmethods.com</A>. The code generator would let you see how DAOs are tied to using Hibernate, which really simplifies targeting all different types of DB.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Good luck,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Steven</FONT></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=maya_java@(protected) href="mailto:maya_java@(protected)">Maya menon</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=J2EEPATTERNS-INTEREST@(protected) href="mailto:J2EEPATTERNS-INTEREST@(protected)">J2EEPATTERNS-INTEREST@(protected) .SUN.COM</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, May 12, 2005 12:15 PM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> DAO - question about</DIV> <DIV><BR></DIV> <DIV>Hi,</DIV> <DIV> </DIV> <DIV>I am thinking about using DAO for our project for doing database calls and transactions. While we implement this pattern , shall I need to use factory pattern ? </DIV> <DIV>I was reading in Core J2Ee patterns :</DIV> <DIV> </DIV> <DIV>The DAO pattern can be made highly flexible by adopting the Abstract Factory [GoF] and the Factory Method [GoF] patterns.</DIV> <DIV> </DIV> <DIV>Is this a true statement ?</DIV> <DIV>My datasource is Oracle and I will be having couple of DAO classes specific to actions.</DIV> <DIV> </DIV> <DIV>Please advice,</DIV> <DIV> </DIV> <P> <HR SIZE=1> Yahoo! Mail Mobile<BR><A href="http://us.rd.yahoo.com/mail_us/taglines/mobile/*http://mobile.yahoo.com /learn/mail">Take Yahoo! Mail with you!</A> Check email on your mobile phone. ==================================================================== 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)</BLOCKQUOTE></BODY></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)
|
|
 |