Search Options
close
Search the following clips:
All Clips
news
science
politics
food
economy
art
technology
health
internet
religion
psychology
Sign Up
Install
Learn More
Login
Spring Hibernate DAO Implementation
cwagner118
follow
0
7-11-2008 3:51 PM
993 views
tags:
spring
,
dao
,
hibernate
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
Some Female Penguins Engage in Prostitution
What social media means to me...
Judge Not Lest Ye Be Judged?
McAfee: Use With Extreme Caution
Obama signs order: In bioterror attack on nation, Post Office delivers aid
Does Death Exist? New Theory Says 'No'
NJ Senate President calls on Janet Napolitano to resign
New Years Eve Blue Moon & Partial Lunar Eclipse
The Funniest Cats of 2009 (Videos)
Reuters: Best Photos of the Decade
visit the
Top Clips page
View the Top Clips from
July 11, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/56a5899b-6969-4d88-a851-3d257ba5c3ae/BABDBA6B-5216-43EA-A288-A22952FE7883/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/" href="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/" style="font-size: 11px;">kennii.wordpress.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><H2>Spring Hibernate DAO Implementation with interface</H2></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><P><STRONG>Intro </STRONG></P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><P>Assuming we have a module called <STRONG>Account Management</STRONG> in our project called<STRONG> foo</STRONG>,</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><P>We might can make use of the following package structure.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><li style="margin-left:16px;padding-left: 0px;">foo.service.AccountManagement</LI></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><li style="margin-left:16px;padding-left: 0px;">foo.service.AccountManagementImpl</LI></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><li style="margin-left:16px;padding-left: 0px;">foo.dao.AccountDAO</LI></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><li style="margin-left:16px;padding-left: 0px;">foo.dao.hibernate.AccountDAOImpl (In this case hibernate)</LI></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><li style="margin-left:16px;padding-left: 0px;">foo.model.Account</LI></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><div align="center"><img src="http://content7.clipmarks.com/blog_cache/kennii.wordpress.com/img/FB3B97E9-629B-4F15-967D-02EF39878DE6" alt="Sample Spring-Hibernate Hierarchy UML" /></div></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><P><STRONG>Spring Wiring </STRONG></P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><CODE><bean id="accountDAO" class="rb.dao.hibernate.AccountDAOImpl"></bean></CODE></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><CODE><bean id="accountManagement" class="foo.service.AccountManagementImpl"> <property name=”accountDAO”> <ref bean=”accountDAO”/> </property> </bean></CODE></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><P>So note that you can replace the accountDAO with some other implementation class, probably using pure JDBC or ibatis.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><P><STRONG>Summary</STRONG></P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://kennii.wordpress.com/2007/08/07/spring-hibernate-dao-implementation-with-interface/"><P>As the experts say, always code to interfaces to cater for different implementations.</P></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/BABDBA6B-5216-43EA-A288-A22952FE7883/blog/" title="blog or email this clip"><img src="http://content8.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK