Categories
Ebooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Computer in the office
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Multimedia trainings
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Reports, analyses
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
- Architektura i wnętrza
- Health and Safety
- Biznes i Ekonomia
- Home and garden
- E-business
- Ekonomia i finanse
- Finances
- Personal finance
- Business
- Photography
- Computer science
- HR & Payroll
- Computers, Excel
- Accounts
- Culture and literature
- Scientific and academic
- Environmental protection
- Opinion-forming
- Education
- Taxes
- Travelling
- Psychology
- Religion
- Agriculture
- Book and press market
- Transport and Spedition
- Healthand beauty
-
History
-
Computer science
- Office applications
- Data bases
- Bioinformatics
- IT business
- CAD/CAM
- Digital Lifestyle
- DTP
- Electronics
- Digital photography
- Computer graphics
- Games
- Hacking
- Hardware
- IT w ekonomii
- Scientific software package
- School textbooks
- Computer basics
- Programming
- Mobile programming
- Internet servers
- Computer networks
- Start-up
- Operational systems
- Artificial intelligence
- Technology for children
- Webmastering
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Narrative poetry
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
School textbooks
-
Popular science and academic
- Archeology
- Bibliotekoznawstwo
- Cinema studies
- Philology
- Polish philology
- Philosophy
- Finanse i bankowość
- Geography
- Economy
- Trade. World economy
- History and archeology
- History of art and architecture
- Cultural studies
- Linguistics
- Literary studies
- Logistics
- Maths
- Medicine
- Humanities
- Pedagogy
- Educational aids
- Popular science
- Other
- Psychology
- Sociology
- Theatre studies
- Theology
- Economic theories and teachings
- Transport i spedycja
- Physical education
- Zarządzanie i marketing
-
Guides
-
Game guides
-
Professional and specialist guides
-
Law
- Health and Safety
- History
- Road Code. Driving license
- Law studies
- Healthcare
- General. Compendium of knowledge
- Academic textbooks
- Other
- Construction and local law
- Civil law
- Financial law
- Economic law
- Economic and trade law
- Criminal law
- Criminal law. Criminal offenses. Criminology
- International law
- International law
- Health care law
- Educational law
- Tax law
- Labor and social security law
- Public, constitutional and administrative law
- Family and Guardianship Code
- agricultural law
- Social law, labour law
- European Union law
- Industry
- Agricultural and environmental
- Dictionaries and encyclopedia
- Public procurement
- Management
-
Tourist guides and travel
- Africa
- Albums
- Southern America
- North and Central America
- Australia, New Zealand, Oceania
- Austria
- Asia
- Balkans
- Middle East
- Bulgary
- China
- Croatia
- The Czech Republic
- Denmark
- Egipt
- Estonia
- Europe
- France
- Mountains
- Greece
- Spain
- Holand
- Iceland
- Lithuania
- Latvia
- Mapy, Plany miast, Atlasy
- Mini travel guides
- Germany
- Norway
- Active travelling
- Poland
- Portugal
- Other
- Przewodniki po hotelach i restauracjach
- Russia
- Romania
- Slovakia
- Slovenia
- Switzerland
- Sweden
- World
- Turkey
- Ukraine
- Hungary
- Great Britain
- Italy
-
Psychology
- Philosophy of life
- Kompetencje psychospołeczne
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Audiobooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Real estate
- Persuasion and NLP
- Taxes
- Guides
- Presentations
- Leadership
- Public Relation
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
History
-
Computer science
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
Popular science and academic
-
Guides
-
Professional and specialist guides
-
Law
-
Tourist guides and travel
-
Psychology
- Philosophy of life
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Videocourses
-
Data bases
-
Big Data
-
Biznes, ekonomia i marketing
-
Cybersecurity
-
Data Science
-
DevOps
-
For children
-
Electronics
-
Graphics/Video/CAX
-
Games
-
Microsoft Office
-
Development tools
-
Programming
-
Personal growth
-
Computer networks
-
Operational systems
-
Software testing
-
Mobile devices
-
UX/UI
-
Web development
-
Management
Podcasts
E-book details
Log in, If you're interested in the contents of the item.
![Spring Data. 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](https://static01.helion.com.pl/global/okladki/326x466/e_3cxr.jpg)
Spring Data. 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
Ebook
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.
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.
- Spring Data
- Table of Contents
- Spring Data
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers and more
- Why Subscribe?
- Free Access for Packt account holders
- Support files, eBooks, discount offers and more
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Errata
- Piracy
- Questions
- 1. Getting Started
- Java Persistence API
- Key concepts
- Creating database queries
- Native SQL queries
- Java Persistence Query Language
- The Criteria API
- Redis
- Supported data types
- Persistence
- Replication
- Publish/subscribe messaging pattern
- Summary
- Java Persistence API
- 2. Getting Started with Spring Data JPA
- Downloading dependencies with Maven
- Configuring the Spring application context
- Creating the properties file
- Creating the application context configuration class
- Creating the application context configuration skeleton
- Configuring the data source bean
- Configuring the entity manager factory bean
- Configuring the transaction manager bean
- Loading the application context configuration
- Implementing CRUD functionality for an entity
- Domain model
- Contact
- Creating new contact objects
- Updating contact information
- Address
- Creating new addresses
- Updating address information
- Contact
- Creating a custom repository
- Creating a custom repository in the old school way
- Creating a custom repository with Spring Data JPA
- CRUD
- Create
- Read
- Update
- Delete
- Domain model
- Summary
- 3. Building Queries with Spring Data JPA
- Building queries
- Query methods
- Query generation from method name
- Method prefixes
- Property expressions
- Keywords
- Implementing the search function
- Pros and cons
- Named queries
- Creating a named query
- Creating the query method
- Creating the service method
- Pros and cons
- @Query annotation
- Creating the query method
- Creating the service method
- Pros and cons
- Query generation from method name
- JPA Criteria API
- Adding the JPA Criteria API support to a repository
- Creating the criteria query
- Creating a static metamodel class
- Creating specifications
- Creating the service method
- Pros and cons
- Querydsl
- Configuring Querydsl-Maven integration
- Configuring Querydsl Maven dependencies
- Configuring the code generation Maven plugin
- Generating Querydsl query types
- Adding Querydsl support to a repository
- Creating the executed query
- Executing the created query
- Pros and cons
- Configuring Querydsl-Maven integration
- What technique should we use?
- Query methods
- Sorting query results
- Sorting with method name
- Creating the query method
- Modifying the service method
- Sorting with query strings
- JPQL queries
- SQL queries
- Sorting with the Sort class
- JpaRepository
- Query generation from the method name
- @Query annotation
- JPA Criteria API
- Sorting with Querydsl
- What technique should we use?
- Sorting with method name
- Paginating query results
- Changing the service layer
- Creating a class for pagination parameters
- Changing the service interface
- Creating PageRequest objects
- Implementing pagination
- JpaRepository
- Query generation from the method name
- Adding pagination support to the query method
- Modifying the service class
- Named queries
- Adding pagination support to the query method
- Modifying the service class
- @Query annotation
- Adding pagination support to a query method
- Modifying the service method
- JPA Criteria API
- Querydsl
- Changing the service layer
- Summary
- Building queries
- 4. Adding Custom Functionality to JPA Repositories
- Adding custom functionality to a single repository
- Creating the custom interface
- Implementing the created interface
- Configuring the repository class
- Implementing the custom methods
- Creating the repository interface
- Creating the service implementation
- What did we just do?
- Adding custom functionality to all repositories
- Creating the base repository interface
- Implementing the base repository interface
- Creating the repository factory bean
- Creating the skeleton of the repository factory bean class
- Creating the repository factory inner class
- Creating the builder method for the repository factory
- Configuring Spring Data JPA
- Creating the repository interface
- Implementing the service layer
- What did we just do?
- Summary
- Adding custom functionality to a single repository
- 5. Getting Started with Spring Data Redis
- Installing Redis
- Getting the required dependencies
- Configuring the Spring application context
- Configuring the Redis connection
- Configuring the Jedis connector
- Configuring the JRedis connector
- Configuring the RJC connector
- Configuring the SRP connector
- Summary
- 6. Building Applications with Spring Data Redis
- Designing a Redis data model
- Key components
- Atomic counters
- RedisTemplate
- Operations
- Serializers
- Implementing a CRUD application
- Using default serializers
- Configuring the application context
- Configuring the Redis template bean
- Configuring the Redis atomic long bean
- CRUD
- Create
- Read
- Update
- Delete
- Configuring the application context
- Storing data in JSON
- Configuring the application context
- Configuring the value serializer bean
- Configuring the Redis template bean
- Configuring the Redis atomic long bean
- CRUD
- Create
- Read
- Update
- Delete
- Configuring the application context
- Using default serializers
- The publish/subscribe messaging pattern
- Creating message listeners
- Implementing the MessageListener interface
- Creating a POJO message listener
- Configuring the application context
- Configuring the message listener beans
- Configuring the message listener adapter bean
- Configuring the message listener container bean
- Sending messages with RedisTemplate
- Create
- Update
- Delete
- Verifying the wanted behaviour
- Creating message listeners
- Using Spring cache abstraction with Spring Data Redis
- Configuring the Spring cache abstraction
- Enabling caching annotations
- Configuring the host and port of the used Redis instance
- Configuring the Redis connection factory bean
- Configuring the Redis template bean
- Configuring the cache manager bean
- Identifying the cached methods
- Adding contact information to the cache
- Updating the contact information to the cache
- Deleting contact information from the cache
- Verifying that the Spring cache abstraction is working
- Configuring the Spring cache abstraction
- Summary
- Index
- Title: Spring Data. 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
- Author: Petri Kainulainen
- Original title: Spring Data. 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.
- ISBN: 9781849519052, 9781849519052
- Date of issue: 2012-11-05
- Format: Ebook
- Item ID: e_3cxr
- Publisher: Packt Publishing