Spring Persistence -- A Running Start (eBook)
VIII, 236 Seiten
Apress (Verlag)
978-1-4302-1878-4 (ISBN)
Published with the developer in mind, firstPress technical briefs explore emerging technologies that have the potential to be critical for tomorrow's industry. Apress keeps developers one step ahead by presenting key information as early as possible in a PDF of 150 pages or less. Explore the future through Apress with Spring Persistence-A Running Start.
This firstPress title gets readers rolling with the various fundamental Spring Framework Java Persistence concepts and offerings, as well as proven design patterns for integrating Spring Persistence functionality for complex and transaction-based enterprise Java applications.
The Java platform offers several options for saving 'long-lived' information, including JPA (Java Persistence API), Hibernate, iBatis, JDBC, and even JCR (Java Content Repository-a standard for interfacing with a content management system).
This book helps readers decide which persistence solution is the most ideal for their application requirements, and shows how Spring can be leveraged to simplify the integration of their selected persistence framework into their enterprise application.
A bio is not available for this author.
Published with the developer in mind, firstPress technical briefs explore emerging technologies that have the potential to be critical for tomorrow's industry. Apress keeps developers one step ahead by presenting key information as early as possible in a PDF of 150 pages or less. Explore the future through Apress with Spring Persistence-A Running Start.This firstPress title gets readers rolling with the various fundamental Spring Framework Java Persistence concepts and offerings, as well as proven design patterns for integrating Spring Persistence functionality for complex and transaction based enterprise Java applications.The Java platform offers several options for saving long lived information, including JPA (Java Persistence API), Hibernate, iBatis, JDBC, and even JCR (Java Content Repository a standard for interfacing with a content management system).This book helps readers decide which persistence solution is the most ideal for their application requirements, and shows how Spring can be leveraged to simplify the integration of their selected persistence framework into their enterprise application.
A bio is not available for this author.
Contents 2
Chapter 1: Introducing Spring Persistence 10
Persistence 11
Spring as a de Facto Standard 13
Exploring Spring Design Patterns and Strategies 22
Injecting Code Using AOP and Interceptors 26
Application Layering 31
Understanding Your Persistence Options 36
Summary 37
Chapter 2: Using Spring JDBC 39
Integrating JDBC into Your Application Using Spring 40
Integrating Datasources with Spring JDBC 40
Creating an ApplicationContext 43
Using Singleton Beans 45
Integrating a Database 47
Adding Persistence 48
Using the SimpleJdbc Classes 59
Updating and Executing via JdbcTemplate 62
Other JdbcTemplate Implementatons 66
Summary 68
Chapter 3: Using Spring with Hibernate 69
Migrating Our Gallery Application to Hibernate 69
Building the Comment and ArtEntity Java Classes 73
Rounding Out the Domain Model 83
Building the DAOs 92
Persisting Data with Hibernate 100
Summary 112
Chapter 4: Integrating JPA with Spring 113
Considering Configuration Options 114
Creating Your First JPA Application 114
Unit Testing JPA and Spring 128
Summary 129
Chapter 5: Introducing the iBATIS Data Mapper 130
Getting to Know iBATIS 130
Getting Started with iBATIS 132
Moving Beyond the Basics 138
Summary 142
Chapter 6: Managing Transactions 143
The Joy of ACID 144
Examining Transactional Examples 153
Summary 157
Chapter 7: Integration Testing with JUnit 158
Integration Testing 158
Using JUnit 4.4 and Annotations to Facilitate Testing 159
Spring JUnit 4 Extensions 161
Testing with a Database 164
Summary 167
Chapter 8: Using Spring with a Content Management System 168
Introducing JCR 169
Introducing Spring Modules 171
Architecting Your Repository 172
Querying for JCR Nodes 186
Defining Our Service Layer 189
Summary 190
Chapter 9: Rapid Web Development Using Groovy and Grails 191
Getting Grails Running 192
Exploring the Grails Application Layers 202
Using Active Record as an Alternative to the DAO 211
Understanding the Active Record Pattern 213
Getting to Know Groovy 214
Defining a Transactional Service Layer in Grails 228
Summary 230
Related Titles 231
Copyright 232
Erscheint lt. Verlag | 27.3.2009 |
---|---|
Zusatzinfo | VIII, 236 p. |
Verlagsort | Berkeley |
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Programmiersprachen / -werkzeuge |
Mathematik / Informatik ► Informatik ► Theorie / Studium | |
Mathematik / Informatik ► Informatik ► Web / Internet | |
Schlagworte | Content Management • Database • Databases • Design • Design Pattern • Development • Framework • Grails • Java • Management • techniques • Technology • Web Development |
ISBN-10 | 1-4302-1878-9 / 1430218789 |
ISBN-13 | 978-1-4302-1878-4 / 9781430218784 |
Haben Sie eine Frage zum Produkt? |
![PDF](/img/icon_pdf_big.jpg)
Größe: 951 KB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.
Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich