Spring Data
暫譯: Spring Data
Petri Kainulainen
- 出版商: Packt Publishing
- 出版日期: 2012-10-29
- 售價: $1,260
- 貴賓價: 9.5 折 $1,197
- 語言: 英文
- 頁數: 160
- 裝訂: Paperback
- ISBN: 1849519048
- ISBN-13: 9781849519045
-
相關分類:
Java 相關技術
海外代購書籍(需單獨結帳)
商品描述
Want to make it easier to implement data access with your Spring-powered applications? Then this is the book you need. A complete tutorial to Spring Data, it makes learning easier with lots of code examples and clear instructions.
Overview
- Implement JPA repositories with lesser code
- Includes functional sample projects that demonstrate the described concepts in action and help you start experimenting right away.
- Provides step-by-step instructions and a lot of code examples that are easy to follow and help you to get started from page one.
In Detail
Spring Framework has always had a good support for different data access technologies. However, developers had to use technology-specific APIs, which often led to a situation where a lot of boilerplate code had to be written in order to implement even the simplest operations. Spring Data changed all this. Spring Data makes it easier to implement Spring-powered applications that use cloud-based storage services, NoSQL databases, map-reduce frameworks or relational databases.
"Spring Data" is a practical guide that is full of step-by-step instructions and examples which ensure that you can start using the Java Persistence API and Redis in your applications without extra hassle.
This book provides a brief introduction to the underlying data storage technologies, gives step-by-step instructions that will help you utilize the discussed technologies in your applications, and provides a solid foundation for expanding your knowledge beyond the concepts described in this book.
You will learn an easier way to manage your entities and to create database queries with Spring Data JPA. This book also demonstrates how you can add custom functions to your repositories. You will also learn how to use the Redis key-value store as data storage and to use its other features for enhancing your applications.
"Spring Data" includes all the practical instructions and examples that provide you with all the information you need to create JPA repositories with Spring Data JPA and to utilize the performance of Redis in your applications by using Spring Data Redis.
What you will learn from this book
- Configure your application by using Java configuration
- Manage the information of your entities through repository interfaces
- Learn efficient and easy ways to create database queries
- Use an easy way to sort and paginate query results
- Customize your JPA repositories with custom functions
- Install Redis to a computer running Unix-like operating system
- Use the Redis key-value store as the data storage for your application
- Utilize the Redis publish/subscribe messaging pattern implementation
Approach
This book is a standard tutorial which provides step-by-step instructions and a lot of code examples that are easy to follow and help you to get started from page one.
Who this book is written for
This book is suited for developers who are working with Spring-powered applications, and are looking for an easier way to write data access code that uses relational databases. Also, if you are interested in learning how you can utilize Redis in your applications, this is the book for you. This book assumes that you have got some experience with the Spring Framework and the Java Persistence API. No previous experience with Redis is required.
商品描述(中文翻譯)
想要讓使用 Spring 的應用程式更容易實現資料存取嗎?那麼這本書就是你所需要的。這是一本完整的 Spring Data 教程,透過大量的程式碼範例和清晰的指示,使學習變得更加簡單。
概述
- 使用更少的程式碼實現 JPA 儲存庫
- 包含功能性範例專案,展示所描述的概念並幫助你立即開始實驗。
- 提供逐步指示和大量易於跟隨的程式碼範例,幫助你從第一頁開始入門。
詳細內容
Spring Framework 一直以來對不同的資料存取技術都有良好的支援。然而,開發人員必須使用特定技術的 API,這常常導致必須撰寫大量的樣板程式碼來實現即使是最簡單的操作。Spring Data 改變了這一切。Spring Data 使得實現使用雲端儲存服務、NoSQL 資料庫、Map-Reduce 框架或關聯式資料庫的 Spring 應用程式變得更加容易。
《Spring Data》是一本實用指南,充滿了逐步的指示和範例,確保你可以在應用程式中輕鬆使用 Java Persistence API 和 Redis,而不會有額外的麻煩。
這本書簡要介紹了底層的資料儲存技術,提供逐步的指示,幫助你在應用程式中利用所討論的技術,並為擴展你對本書所描述概念的知識提供堅實的基礎。
你將學會更簡單的方式來管理實體並使用 Spring Data JPA 創建資料庫查詢。這本書還展示了如何為你的儲存庫添加自定義功能。你還將學會如何使用 Redis 鍵值儲存作為資料儲存,並利用其其他功能來增強你的應用程式。
《Spring Data》包含所有實用的指示和範例,提供你創建 JPA 儲存庫所需的所有資訊,並通過使用 Spring Data Redis 在應用程式中利用 Redis 的性能。
你將從這本書中學到的內容
- 使用 Java 配置來配置你的應用程式
- 通過儲存庫介面管理實體的資訊
- 學習高效且簡單的方式來創建資料庫查詢
- 使用簡單的方法對查詢結果進行排序和分頁
- 使用自定義功能自訂你的 JPA 儲存庫
- 在運行類 Unix 作業系統的電腦上安裝 Redis
- 使用 Redis 鍵值儲存作為應用程式的資料儲存
- 利用 Redis 的發布/訂閱消息模式實現
方法
這本書是一個標準的教程,提供逐步的指示和大量易於跟隨的程式碼範例,幫助你從第一頁開始入門。
本書的讀者對象
這本書適合正在使用 Spring 應用程式的開發人員,並尋找更簡單的方式來撰寫使用關聯式資料庫的資料存取程式碼。此外,如果你有興趣學習如何在應用程式中利用 Redis,這本書就是為你而寫的。本書假設你對 Spring Framework 和 Java Persistence API 有一定的經驗,無需具備 Redis 的先前經驗。