Course (2-10) Hibernate
- 1. CHAPTER 1 An Introduction to Hibernate 3
- 1.1. Plain Old Java Objects (POJOs).
- 1.2. Origins of Hibernate and Object-Relational Mapping
- 1.2.1. EJBs As a Persistence Solution
- 1.2.2. Hibernate As a Persistence Solution.
- 1.2.3. A Thin Solution?
- 1.3. A Hibernate Hello World Example
- 1.4. Mappings
- 1.5. Database Generation
- 1.6. The Relationship of Hibernate 3 with EJB 3.0
- 2. CHAPTER 2 Integrating and Configuring Hibernate
- 2.1. The Steps Needed to Integrate and Configure Hibernate
- 2.2. Understanding Where Hibernate Fits in Your Java Application
- 2.3. Deploying Hibernate
- 2.3.1. Required Libraries for Running Hibernate 3
- 2.3.2. Annotations and Enterprise JavaBeans 3
- 2.3.4. JMX and Hibernate
- 2.4. Hibernate Configuration
- 2.4.1. Hibernate Properties
- 2.4.2. XML Configuration
- 2.4.3. Mapping Documents
- 2.4.4. Naming Strategy
- 2.4.5. Using a Container Managed Data Source
- 2.5. The Session Factory
- 2.6. SQL Dialects
- 3. CHAPTER 3 Building a Simple Application
- 3.1. Installing the Tools
- 3.1.1. Hibernate and Hibernate Tools
- 3.1.2. HSQLDB 1.8.0
- 3.1.3. Ant 1.6.5
- 3.1.4. The Ant Tasks
- 3.1.5. Enabling Logging
- 3.2. Creating a Hibernate Configuration File
- 3.3. Running the Message Example
- 3.4. Persisting Multiple Objects
- 3.5. Creating Persistence Classes
- 3.6. Creating the Object Mappings
- 3.7. Creating the Tables
- 3.8. Sessions
- 3.8.1. The Session and Related Objects
- 3.8.2. Using the Session
- 3.9. Building DAOs
- 3.10. The Example Client
- 3.1. Installing the Tools
- 4. CHAPTER 4 The Persistence Life Cycle
- 4.1. Introduction to the Life Cycle
- 4.2. Entities, Classes, and Names
- 4.3. Identifiers
- 4.4. Entities and Associations
- 4.5. Saving Entities
- 4.6. Object Equality and Identity
- 4.7. Loading Entities
- 4.8. Refreshing Entities
- 4.9. Updating Entities
- 4.10. Deleting Entities
- 4.11. Cascading Operations
- 4.12. Lazy Loading, Proxies, and Collection Wrappers
- 4.13. Querying Objects
- 5. CHAPTER 5 An Overview of Mapping
- 5.1. Why Mapping Cannot Be Automated
- 5.2. Primary Keys
- 5.3. Lazy Loading
- 5.3. Associations
- 5.3.1. The One-to-One Association
- 5.3.2. The One-to-Many and Many-to-One Association
- 5.3.3. The Many-to-Many Association
- 5.3.4 Applying Mappings to Associations
- 5.4. Types of Mapping
- 5.5. Other Information Represented in Mappings
- 5.5.1. Specification of (Database) Column Types and Sizes
- 5.5.2. The Mapping of Inheritance Relationships to the Database
- 5.5.3. Primary Key
- 5.5.4. The Use of SQL Formula–Based Properties
- 5.5.5. Mandatory and Unique Constraints.
- 5.5.6. Cascading of Operations
- 6. CHAPTER 6 Mapping with Annotations
- 6.1. Java 5 Features
- 6.2. Creating Hibernate Mappings with Annotations
- 6.2.1. Cons of Annotations
- 6.2.2. Pros of Annotations
- 6.2.3. Choosing Which to Use
- 6.2.4. Using Annotations in Your Application
- 6.2.5. EJB 3 Persistence Annotations
- 6.2.6. Entity Beans with @Entity
- 6.2.7. Primary Keys with @Id and @GeneratedValue
- 6.2.8. Generating Primary Key Values with @SequenceGenerator
- 6.2.9. Generating Primary Key Values with @TableGenerator
- 6.2.10. Compound Primary Keys with @Id, @IdClass, or @EmbeddedId
- 6.2.11. Database Table Mapping with @Table and @SecondaryTable
- 6.2.12. Persisting Basic Types with @Basic
- 6.2.13. Omitting Persistence with @Transient
- 6.2.14. Mapping Properties and Fields with @Column
- 6.2.15. Modeling Entity Relationships
- 6.2.16. Inheritance
- 6.2.17. Other EJB 3 Persistence Annotations
- 6.3. Configuring the Annotated Classes
- 6.4. Hibernate 3–Specific Persistence Annotations
- 6.4.1. @Entity
- 6.4.2. Sorting Collections with @Sort
- 6.4.3. Ordering Collections with @IndexColumn
- 6.4.4. Applying Indexes with @Table and @Index
- 6.4.5. Restricting Collections with @Where
- 6.4.6. Alternative Key Generation Strategies with
- 6.4.7. @GenericGenerator
- 6.5. Using Ant with Annotation-Based Mappings
- 6.6. Code Listings
- 7. CHAPTER 7 Creating Mappings with Hibernate XML Files
- 7.1. Hibernate Types
- 7.1.1. Entities
- 7.1.2. Components
- 7.1.3. Values
- 7.2. The Anatomy of a Mapping File
- 7.2.1. The <hibernate-mapping> Element
- 7.2.2. The <class> Element
- 7.2.3. The <id> Element
- 7.2.4. The <property> Element
- 7.2.5. The <component> Element
- 7.2.6. The <one-to-one> Element
- 7.2.7. The <many-to-one> Element
- 7.2.8. The Collection Elements
- 7.3. Mapping Simple Classes
- 7.4. Mapping Composition
- 7.5. Mapping Other Associations
- 7.6. Mapping Collections
- 7.7. Mapping Inheritance Relationships
- 7.7.1. One Table per Concrete Class
- 7.7.2. One Table per Subclass
- 7.7.3. One Table per Class Hierarchy
- 7.8. More Exotic Mappings
- 7.8.1. The any Tag
- 7.8.2. The array Tag
- 7.8.3. The <dynamic-component> Element
- 7.1. Hibernate Types
- 8. CHAPTER 8 Using the Session
- 8.2. Sessions
- 8.3. Transactions and Locking
- 8.3.1. Transactions
- 8.3.2. Locking
- 8.3.3. Deadlocks
- 8.4. Caching
- 8.5. Threads
- 9. CHAPTER 9 Searches and Queries
- 9.1. HQL
- 9.2. Syntax Basics
- 9.1.1. UPDATE
- 9.1.2. DELETE
- 9.1.3. INSERT
- 9.1.4. SELECT
- 9.2. The First Example with HQL
- 9.3. Logging the Underlying SQL
- 9.3.1. Commenting the Generated SQL
- 9.4. The from Clause and Aliases
- 9.5. The select Clause and Projection
- 9.6. Using Restrictions with HQL
- 9.7. Using Named Parameters
- 9.8. Paging Through the Result Set
- 9.9. Obtaining a Unique Result
- 9.10. Sorting Results with the order by Clause
- 9.11. Associations
- 9.11.1. Aggregate Methods
- 9.11.2. Bulk Updates and Deletes with HQL
- 9.11.3. Named Queries for HQL and SQL
- 9.11.4. Using Native SQL
- 10. CHAPTER 10 Advanced Queries Using Criteria
- 10.1. Using the Criteria API
- 10.1.1. Using Restrictions with Criteria
- 10.1.2. Paging Through the Result Set
- 10.1.3. Obtaining a Unique Result
- 10.1.4. Sorting the Query’s Results
- 10.1.5. Associations
- 10.1.6. Distinct Results
- 10.1.7. Projections and Aggregates
- 10.1.8. Query By Example (QBE)
- 10.1. Using the Criteria API
- 11. CHAPTER 11 Filtering the Results of Searches
- 11.1. When to Use Filters
- 11.2. Defining Filters
- 11.3. Using Filters in Your Application
- 12. APPENDIX A More Advanced Features
- 12.1. EJB 3 and the EntityManager
- 12.2. Managed Versioning and Optimistic Locking
- 12.3. XML Relational Persistence
- 12.3.1. Adding Node Information to Mappings
- 12.3.2. Exporting XML Entities
- 12.3.3. Importing XML Entities
- 12.3.4. Other Considerations When Using XML Entities
- 12.4. Maps
- 12.5. Limitations of Hibernate
- 12.6. Hand-Rolled SQL
- 12.6.1. Using a Direct Mapping
- 12.6.2. Using a View
- 12.6.3. Putting SQL into a Mapping
- 12.7. Invoking Stored Procedures
- 12.8. Events
- 12.8.1. An Example Event Listener
- 12.9. Interceptors
- 12.9.1. An Example Interceptor
- 12.10. Overriding the Default Constructor
- 13. APPENDIX B Hibernate Tools
- 13.1. The Eclipse Plug-In
- 13.1.1. Installing the Plug-In
- 13.1.2. The Boilerplate Project Configuration
- 13.1.3. Using the Hibernate Console
- 13.2. The Ant Tasks
- 13.2.1. How the Ant Tasks Work
- 13.2.2. Reverse Engineering
- 13.2.3. Templates
- 13.2.4. Configuring the Classpath
- 13.3. APPENDIX C Hibernate and Spring
- 13.3.1. Spring Libraries
- 13.3.2. Configuring Hibernate from a Spring Application
- 13.3.3. Using Hibernate in Your Spring Beans
- 13.3.4. Declarative Transaction Management
- 13.3.5. Managing the Session
- 13.3.6. The Sample Configuration File
- 14. Upgrading from Hibernate 2
- 14.1. Package and DTD Changes
- 14.2. New Features and Support for Old Ones
- 14.2.1. Changes and Deprecated Features
- 14.2.2. Additions
- 14.3. Changes to Tools and Libraries
- 14.4. Changes with Java 5
Online LIVE Training Programming Course offered by INCAPROG ONLINE - www.incaprog.com - contacto@incaprog.com - Phone : (954) 727-3141