Spring Persistence with Hibernate

Since its inception, the Spring Framework has gradually changed the rules of application development in the Java community. This book is the ideal guide and teaching companion for developers interested in learning about the Spring Framework and how it can be leveraged to build persistence-driven app...

Mô tả đầy đủ

Đã lưu trong:
Chi tiết về thư mục
Những tác giả chính: Fisher, Paul Tepper, Murphy, Brian D.
Định dạng: Sách
Ngôn ngữ:English
Được phát hành: Apress 2013
Những chủ đề:
Truy cập trực tuyến:http://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34772
Các nhãn: Thêm thẻ
Không có thẻ, Là người đầu tiên thẻ bản ghi này!
Thư viện lưu trữ: Thư viện Trường Đại học Đà Lạt
id oai:scholar.dlu.edu.vn:DLU123456789-34772
record_format dspace
institution Thư viện Trường Đại học Đà Lạt
collection Thư viện số
language English
topic Persistence
Computer
spellingShingle Persistence
Computer
Fisher, Paul Tepper
Murphy, Brian D.
Spring Persistence with Hibernate
description Since its inception, the Spring Framework has gradually changed the rules of application development in the Java community. This book is the ideal guide and teaching companion for developers interested in learning about the Spring Framework and how it can be leveraged to build persistence-driven applications using Hibernate, one of the most popular Java persistence frameworks today. Spring Persistence with Hibernate gets you rolling with fundamental Spring concepts, as well as proven design patterns for integrating persistence into your applications. Many of the lessons illustrated in this book were culled from years of practical experience building scalable, high-volume web applications using Spring and Hibernate. One of the details that stands out in our joint experience is the importance and benefit of learning through hands-on experience. To this end, we will build a real-world application that utilizes Spring 3, Hibernate 3.5, JPA 2.0, Hibernate-Search, Grails, Spring Roo, and Dozer. We firmly believe that learning about Spring and Hibernate implies far more than simply understanding the respective APIs of each framework. To be able to effectively develop with these two amazing technologies, it is necessary to understand the design patterns and best practices for getting the best from these frameworks, and building on them in a consistent, proven manner. We hope this book will teach you more than just how to use Spring and Hibernate together. Our goal is to channel the development experience, lessons, and best practices we’ve seen work successfully in our experience, so that you can apply these skills and tools in your own applications. Throughout these pages, we will introduce core Hibernate fundamentals, demonstrating how the framework can be best utilized within a Spring context. We will start with foundational concepts, such as strategies for developing an effective domain model and DAO layer, and then move into querying techniques using HQL, JPQL, and the Criteria API. After fundamental concepts are introduced, we will move on to more advanced topics, such as fetching and caching strategies. We will also illustrate several approaches for architecting a transactional service facade. Both programmatic and declarative transactions will be examined, showcasing the benefits of using Spring for expressing transactional semantics. Spring Persistence with Hibernate will also introduce JPA, covering its history and the ways in which Hibernate influenced its development. We will discuss the benefits of following the JPA standard, as well as when it makes sense to utilize Hibernate-specific features. The book will also introduce Grails and GORM, illustrating the differences between the DAO and Active Record patterns. We will port our sample application (which will be developed in the course of the book) into both Grails and Spring Roo, highlighting the benefits and differences of using a rapid-development, convention-over-configuration platform. In these sections, we will explore topics related to concurrency/optimistic locking, Hibernate Session state, caching approaches, and transaction management. The last part of the book will introduce several advanced techniques, important for working with enterprise Spring/Hibernate applications. We will illustrate some of the pitfalls with integrating legacy databases, as well as best practices for developing REST web services, handling Hibernate proxies and lazy collections, as well as building search functionality using Hibernate-Search.
format Book
author Fisher, Paul Tepper
Murphy, Brian D.
author_facet Fisher, Paul Tepper
Murphy, Brian D.
author_sort Fisher, Paul Tepper
title Spring Persistence with Hibernate
title_short Spring Persistence with Hibernate
title_full Spring Persistence with Hibernate
title_fullStr Spring Persistence with Hibernate
title_full_unstemmed Spring Persistence with Hibernate
title_sort spring persistence with hibernate
publisher Apress
publishDate 2013
url http://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34772
_version_ 1757669537348583424
spelling oai:scholar.dlu.edu.vn:DLU123456789-347722014-01-20T01:41:20Z Spring Persistence with Hibernate Fisher, Paul Tepper Murphy, Brian D. Persistence Computer Since its inception, the Spring Framework has gradually changed the rules of application development in the Java community. This book is the ideal guide and teaching companion for developers interested in learning about the Spring Framework and how it can be leveraged to build persistence-driven applications using Hibernate, one of the most popular Java persistence frameworks today. Spring Persistence with Hibernate gets you rolling with fundamental Spring concepts, as well as proven design patterns for integrating persistence into your applications. Many of the lessons illustrated in this book were culled from years of practical experience building scalable, high-volume web applications using Spring and Hibernate. One of the details that stands out in our joint experience is the importance and benefit of learning through hands-on experience. To this end, we will build a real-world application that utilizes Spring 3, Hibernate 3.5, JPA 2.0, Hibernate-Search, Grails, Spring Roo, and Dozer. We firmly believe that learning about Spring and Hibernate implies far more than simply understanding the respective APIs of each framework. To be able to effectively develop with these two amazing technologies, it is necessary to understand the design patterns and best practices for getting the best from these frameworks, and building on them in a consistent, proven manner. We hope this book will teach you more than just how to use Spring and Hibernate together. Our goal is to channel the development experience, lessons, and best practices we’ve seen work successfully in our experience, so that you can apply these skills and tools in your own applications. Throughout these pages, we will introduce core Hibernate fundamentals, demonstrating how the framework can be best utilized within a Spring context. We will start with foundational concepts, such as strategies for developing an effective domain model and DAO layer, and then move into querying techniques using HQL, JPQL, and the Criteria API. After fundamental concepts are introduced, we will move on to more advanced topics, such as fetching and caching strategies. We will also illustrate several approaches for architecting a transactional service facade. Both programmatic and declarative transactions will be examined, showcasing the benefits of using Spring for expressing transactional semantics. Spring Persistence with Hibernate will also introduce JPA, covering its history and the ways in which Hibernate influenced its development. We will discuss the benefits of following the JPA standard, as well as when it makes sense to utilize Hibernate-specific features. The book will also introduce Grails and GORM, illustrating the differences between the DAO and Active Record patterns. We will port our sample application (which will be developed in the course of the book) into both Grails and Spring Roo, highlighting the benefits and differences of using a rapid-development, convention-over-configuration platform. In these sections, we will explore topics related to concurrency/optimistic locking, Hibernate Session state, caching approaches, and transaction management. The last part of the book will introduce several advanced techniques, important for working with enterprise Spring/Hibernate applications. We will illustrate some of the pitfalls with integrating legacy databases, as well as best practices for developing REST web services, handling Hibernate proxies and lazy collections, as well as building search functionality using Hibernate-Search. About the Authors...................................................................................................... xii ■About the Technical Reviewer.................................................................................. xiii ■Acknowledgments.................................................................................................... xiv ■Preface ..................................................................................................................... xvi ■Chapter 1: Architecting Your Application with Spring, Hibernate, and Patterns ........1 ■Chapter 2: Spring Basics ...........................................................................................17 ■Chapter 3: Basic Application Setup ...........................................................................33 ■Chapter 4: Persistence with Hibernate......................................................................49 ■Chapter 5: Domain Model Fundamentals...................................................................69 ■Chapter 6: DAOs and Querying ..................................................................................85 ■Chapter 7: Transaction Management ......................................................................109 ■Chapter 8: Effective Testing.....................................................................................125 ■Chapter 9: Best Practices and Advanced Techniques .............................................137 ■Chapter 10: Integration Frameworks ......................................................................155 ■Chapter 11: GORM and Grails ..................................................................................189 ■Chapter 12: Spring Roo ...........................................................................................215 ■Index........................................................................................................................235 2013-07-18T08:06:06Z 2013-07-18T08:06:06Z 2010 Book 978-1-4302-2632-1 http://scholar.dlu.edu.vn/thuvienso/handle/DLU123456789/34772 en application/pdf Apress