1 / 5

Advanced Hibernate Mapping Strategies: Associations and Persistence Techniques

Dive deeper into Hibernate with this comprehensive guide to Object-Relational Mapping (ORM). Explore simple mappings using the @Column annotation (length, name, unique) and understand essential components like HibernateUtil, SessionFactory, and Session for object retrieval and persistence. This tutorial covers various association types, including Many-to-One, One-to-Many, One-to-One, and Many-to-Many relationships between classes. Learn the intricacies of crafting queries with SQL, HQL, and Criteria for efficient data manipulation and retrieval in your applications.

gyula
Télécharger la présentation

Advanced Hibernate Mapping Strategies: Associations and Persistence Techniques

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Grupo de Estudos VSM Hibernate (parte 2)

  2. Hibernate (Revisão) • Framework ORM (ObjectRelationalMapping) • Mapeamentos “simples” • @Column(lenght, name, unique) • HibernateUtil • SessionFactory • Session • getById ( session.get(Objectobj) )

  3. Hibernate (Persistindo objetos)

  4. Hibernate (Mapeamentos) • Composição (Associações/Relacionamentos entre Classes) • Muitos para um (@ManyToOne) • Um para muitos (@OneToMany) • Um para um (@OneToOne) • Muitos para muitos (@ManyToMany)

  5. Hibernate (Query – SQL / HQL / Criteria)

More Related