Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

Hibernate

This Hibernate - Essentials training course introduces Hibernate, a popular open-source object/relational mapping (ORM) tool that helps Java developers store and access persistent objects. Topics covered include Hibernate configuration, the Hibernate mapping file, inheritance, collections, associations, and the Hibernate Query Language (HQL).

The Hibernate - Advanced training course prepares Java programmers to develop interoperable Hibernate using SOAP, WSDL, and XML Schema. You will get an overview of the interoperable and Java-specific Web services architectures, and then learn the standard APIs for SOAP messaging and WSDL-driven, component-based service development. Both document-style and RPC-style messages and services are covered in depth.

By attending Hibernate workshop, delegates will learn to:

  • Describe the interoperable web services architecture, including the roles of SOAP and WSDL
  • Understand the importance of the WS-I Basic Profile for interoperable web services
  • Build JAX-WS services and clients that take full advantage of the automated data binding of JAXB
  • Use lower-level SOAP and XML APIs for services and/or clients
  • Customize data binding by specifying specific type mappings or altering method or parameter names

  • In depth understanding of Object Oriented Systems
  • Sound Core Java Programming experience
  • Using JDBC to work with RDBMS
  • Knowledge of using and understanding XML
  • Knowledge of using Java Reflection & Annotations
  • Good to have - Idea of design patterns like DAO and Factory

This Hibernate class is designed for Java developers and architects

COURSE AGENDA

Hibernate - Essentials
(Duration : 2 Days)

1

Object Relational Mapping Concepts

2

Hibernate Basics

  • What is ORM?
  • What is Hibernate?
  • Elements of Hibernate
  • Basic Steps
  • Configuring Hibernate
  • Hibernate.properties
  • hibernate.cfg.xml
  • DataSource
  • Hbm.xml
  • Load the Configuration
  • Create the SessionFactory
  • Session
  • Life cycle of entity
  • Transient state
  • Persistent state
  • Detached state
  • Removed state
3

Creating Persistent Classes

  • Create the Entity Class
  • Rule for Persistent Entities
  • Recommendations for Persistent Entities
  • Add Hibernate Tags
4

Object Identity

  • Database Versus Java Identity
  • Identity Scope
  • Identity Generation
  • User Assigned
  • Generated
5

Using Persistent Objects

  • Opening Session
  • Saving Data
  • PopulateDatabase
  • Closing/Flushing the Session
  • Exception Handling
  • Session.get()
  • Session.load()
  • Session.save()
  • Session.update()
  • Session.merge()
  • Transitive persistence
6

Simple Composition and Associations

  • Association Versus Composition
  • Many-to-one
  • Components
  • One-to-one
  • Component Versus One-to-One
7

Collections

  • Collection Types
  • Simple Value Collections
  • Entity Collections
  • Bidirectional Associations
  • Cascading Operations
  • Sorting Collections
  • Composite Elements
8

Inheritance

  • Table per Subclass
  • Table per Class Hierarchy
  • Discriminator
  • Subclass
9

Joined-Subclass

Hibernate - Advanced
(Duration : 2 Days)

1

Introduction to JPA

  • Why JPA?
  • Configuring Hibernate as persistence Provider
  • Configuring Persistence.xml
  • EntityManagerFactory
  • EntityManager
  • EntityTransaction
  • @Entity
  • @Id
  • @IdClass
  • @EmbeddedId
  • @Column
  • @GeneratedValue
  • @Embeddable
  • @EmbeddedValue
  • @ElementCollection
  • @OnetoMany
  • @ManytoOne
  • @Onetoone
  • @ManytoMany
  • Using Mappedby
  • @Table
  • @SecondaryTable
  • @JoinColumn
  • @PrimaryKeyJoinColumn
  • @Lob
  • @Temporal
  • @JoinTable
  • @Inheritance
  • @DiscriminatorValue
  • @DiscriminatorColumn
2

Configuring association in hibernate using bag and idbag

3

Optional associations in Hibernate and JPA

  • Life cycle of an entity in JPA
  • New state
  • Managed state
  • Unmanaged state
4

EntityManager API methods

5

Hibernate Caching

  • First level cache
  • Second level cache
  • Transaction scope cache
  • Process scope cache
  • Cluster scope cache
  • Concurrency strategies
  • EHCache provider
  • Cache Regions
  • Caching query results
  • Ehcache.xml
  • Configuring cache usage strategy
  • Cache modes
  • Caching associations
  • Caching Collections
6

Transactions

  • Programmatic transaction using org.hibernate.Transaction interface
  • JTA transactions using javax.transaction.UserTransaction
  • Contextual sessions
  • org.hibernate.context.CurrentSessionContext
  • hibernate.transaction.factory_class
  • hibernate.transaction.manager_lookup_class
  • hibernate.connection.datasource
  • hibernate.transaction.flush_before_completion
  • hibernate.transaction.auto_close_session
  • hibernate.session_factory_name
  • hibernate.jndi.class
  • hibernate.jndi.url
  • hibernate.connection.isolation
  • managed versioning using "version" or "timestamp"
  • Using optimistic-lock
  • Pessimistic Locking
7

Transitive Persistence

  • Using cascading options
  • Using Stateless session
8

Using filters

  • Enabling filters
  • Filtering Entities
  • Filtering collections
9

HQL

  • Query API
  • Pagination using query.setFirstResult() and query .setMaxResults()
  • Using Named Parameters
  • Using Positional parameters
  • Setting query hints
  • Scrollable Results
  • Using Named Queries
  • Polymorphic Queries
  • Restrictions
  • Expressions with collections
  • HQL functions
  • Order by
  • Projections
  • HQL join options
  • Dynamic fetching with join
  • Reporting Queries
  • Grouping
  • Dynamic instantiation
  • Using Subselects
10

Criteria API

  • Criterion
  • Using Restrictions
  • Getting list
  • Getting unique result
  • Projections
  • Adding order
  • Grouing projections
  • Detached Criteria
  • Sub criterias
11

Fetching strategies for improving performance

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X