Hibernate Training
Hibernate Trainig in Delhi
Why Hibernate?
• Understanding object persistence
• Identity - Inheritance - Associations - Object/relational mapping
• Using direct JDBC
• Example application - Retrieving object graphs using JDBC - Persisting object graphs to a
• relational model - Deleting object graphs - Querying object graphs
• Persistence with Hibernate
• Simplicity and flexibility - Completeness - Performance
• Summary
Hibernate basics
• Configuring Hibernate
• Basic configuration
• Creating mapping definitions
• IDs and generators - Properties - Many-to-one element - Proxies - Collections -
• Cascades - Fetching associated objects
• Building the Session Factory
• Configuring the Session Factory
• Persisting objects
• Retrieving objects
• The Session cache
• Advanced configuration
• Inheritance
• Table per class hierarchy - Table per subclass
Associations and components
• Associations
• Many-to-one relationships, in depth - The central configuration file - Defining sample data
• Building tables and Schema Export
• Logging with log4j and Commons Logging - Running Schema Export - Loading the Events -
• Refactoring - Finding Events - Cascades Components
• What's in a component? - Mapping a component - Why use a component?
Collections and custom types
• Persisting collections and arrays
• Using interfaces - Mapping persistent collections - Collection types - Lazy collections -
• Sorted collections - Bidirectional associations - Cascading collections Implementing custom
• types User Types - Implementing Composite User Types
Querying persistent objects
• Using HQL
• Session.find (?) - The Query interface - Outer joins and HQL - Show SQL
• Query substitutions - Query parser
• Querying objects with HQL
• The FROM clause - Joins - Selects - Using functions - HQL properties - Using expressions
• Criteria queries
• Stored procedures
Organizing with Spring and data access objects
• The ubiquitous DAO pattern
• Keeping the HQL together
• Analyzing the DAO
• Boilerplate code - Potential duplication - Detached objects only
• The Layer Super type pattern
• Creating an Abstract Dao
• The Spring Framework
• What's in a template? - Beans and their factories
|