TI287
Information technology

Hibernate, advanced implementation

Optimize Java persistence with Hibernate caching, mapping, and performance tuning


This training course focuses on classic performance issues related to object-relational mapping and explains how to resolve them using advanced Hibernate concepts. These concepts enable you to optimize performance while leveraging the various caching mechanisms offered by Hibernate.

Objectives

The objective of this training is to enable participants to master loading and caching strategies in Hibernate, implement class inheritance mapping, and optimize associations to ensure application performance, including in a clustered environment with JBoss TreeCache.

Is it for you ?

Engineers, architects, project managers

Prerequisite

Good basic knowledge of Hibernate. Very good knowledge of the Java language

Your benefits

  • Optimize data loading using appropriate fetch strategies (join, batch, subselect)
  • Configure and leverage Hibernate caching layers to improve application performance
  • Manage transactions and concurrency with optimistic and pessimistic locking
  • Model complex associations and inheritance with advanced mapping techniques
  • Monitor and analyze performance using Hibernate metrics and tools
  • Content

    Issues related to data loading

    • Issues related to data loading, impedance mismatch, fetch strategies.
    • Loading by select and subselect.
    • Loading by join, by batch.
    See more + / -

    Using Hibernate caches

    • Session cache
    • Second-level cache
    • Mapping cache
    • Cache strategies
    • Advantages and disadvantages of different implementations
    • Query cache

    Data sharing

    • Transactions and access concurrency.
    • Optimistic/pessimistic locking
    • Clustering
    • JBossTreecache

    Optimizing associations

    • Implementing bidirectional associations.
    • Managing the inverse attribute
    • Polymorphic associations.

    Mapping class inheritance

    • Types of inheritance.
    • One table per class hierarchy.
    • One table per subclass.
    • One table per concrete class.
    • Implicit polymorphism.

    Performance monitoring

    • Identifying and activating metrics.
    • Accessing metrics (SessionFactory).
    • Publishing metrics via JMX.

    Related projects

    • Hibernate Validator.
    • Hibernate Search.
    • Hibernate Shards.

    💡 Useful information

    Our training sessions are offered in Montreal or Quebec City, in person or in virtual format. Dates and locations are provided when you select your session below. If you have any questions regarding registration, schedules, the language of instruction, or cancellation policies, please consult our FAQ .

    Duration
    2 days
    Schedule
    See training dates for details
    Regular fee
    $1,035
    Preferential fee A preferential rate is offered to public institutions, to members of certain professional organizations as well as to companies that do a certain amount of business with Technologia. To know more, please read the "Registration and rates" section on our FAQ page. Please note that preferential rates are not available for online training courses. Discounts cannot be combined with other offers.
    $930
    Private or personalized training

    Do you have several employees interested in the same training course? Whether in person at your offices or remotely in virtual mode, we offer private training courses tailored to your team's needs. Group rates are available. Contact us for more details or request a quote online.

    Request a quote

    Request in-company training

    Do you have several employees interested in the same training course? Whether in person at your offices or remotely in virtual mode, we offer private training courses tailored to your team's needs. Group rates are available. Contact us for more details or request a quote online.

    Tell us more
    Added to cart View my cart