售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Mastering Hibernate
Mastering Hibernate
Credits
About the Author
About the Reviewers
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
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. Entity and Session
Why this book?
Quick Hibernate
Working with a session
Session internals
Contextual session
Session per request
Session per conversation
Session per operation
Stateless session
Entity
Entity lifecycle
Types of entities
Identity crisis
Beyond JPA
Proxy objects
Batch processing
Manual batch management
Setting batch size
Using stateless session
Summary
2. Advanced Mapping
Mapping concepts
Instances and rows
Annotation versus XML
Owning entity
Value mapping
JPA ID generation
Hibernate ID generation
Composite ID
Association cardinality
One-to-one associations
One-to-many associations
Many-to-one associations
Many-to-many associations
Self-referencing tables
Cascade operations
Inheritance
Single table strategy
Table per class strategy
Joined strategy
Enumeration and custom data type
Enumerated type
Custom data type mapping
Summary
3. Working with Annotations
Mapping and association
@Any and @ManyToAny
@MapsId
@Fetch
@OrderBy
@ElementCollection and @CollectionTable
Behavior
@Cache
@Access
@Cascade
@CreationTimestamp and @UpdateTimestamp
@Filter and @FilterDef
@Immutable
@Loader
@NotFound
@SortComparator and @SortNatural
SQL/DDL modifier
@Check
@ColumnDefault
@ColumnTransformer
@DynamicInsert and @DynamicUpdate
@Formula
@SelectBeforeUpdate
@SQLDelete and @Where
@SQLInsert and @SQLUpdate
@SubSelect and @Synchronize
@WhereJoinTable
@NaturalId
Summary
4. Advanced Fetching
Fetching strategy
The JOIN fetch mode
The SELECT fetch mode
The SUBSELECT fetch mode
Batch fetching
Hibernate Query Language
Fetch queries
Delete and update
Join
Native SQL
Scalar query
Entity query
Criteria objects
Filters
Pagination
Summary
5. Hibernate Cache
Cache structure
Cache scope
First-level cache
Second-level cache
Cache provider interface
Ehcache implementation
Cache configuration
Query cache
Caching benefits and pitfalls
Caching strategies
Read only
Non-strict read write
Read-write
Transactional
Object identity
Managing the cache
Remove cached entities
Cache modes
Cache metrics
Summary
6. Events, Interceptors, and Envers
Services
Service loader
Service registry
The OSGi model
Events
Event listener
Registering listeners
Interceptors
Database trigger
Event or interceptor
Envers
Configuration
Strategy
Fetching revisions
Summary
7. Metrics and Statistics
Statistical data types
Session
Entity
Collection
Query
Cache
Statistics via JMX
Introduction to JMX
Using JMX with Hibernate
Summary
8. Addressing Architecture
Architecture matters
Transaction management
Local transactions
The Java Transaction API
Compensating transactions
Concurrency
Isolation levels
Locking
User lock
Scalability
Clustering
Database shards
Configuration
Sharded session factory
Shard strategy
Shard ID generation
Performance
Lazy loading
Fetch mode
Batch processing
Caching
Stateless session
Legacy application
Reverse engineering
Modernization
The Cloud strategy
Licensing
Multi-tenancy
Summary
9. EJB and Spring Context
Deployment
Configuration
Resource
Transaction
Hibernate libraries
EJB
Persistence unit
Server resources
Entity manager
Transaction
Hibernate session
Spring
Configuration
Transaction management
Data source
Session factory
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜