Beginning Hibernate : for Hibernate 5 /
Get started with the Hibernate 5 persistence layer and gain a clear introduction to the current standard for object-relational persistence in Java. This updated edition includes the new Hibernate 5.0 framework as well as coverage of NoSQL, MongoDB, and other related technologies, ranging from applic...
Clasificación: | Libro Electrónico |
---|---|
Autores principales: | , , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
[United States] :
Apress,
2016.
|
Edición: | Fourth edition. |
Colección: | ITpro collection
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- At a Glance; Contents; About the Authors; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: An Introduction to Hibernate 5; Plain Old Java Objects (POJOs); Origins of Hibernate and Object/Relational Mapping; Hibernate as a Persistence Solution; A Hibernate Hello World Example; Mappings; Persisting an Object; Summary; Chapter 2: Integrating and Configuring Hibernate; The Steps Needed to Integrate and Configure Hibernate; Understanding Where Hibernate Fits into Your Java Application; Deploying Hibernate; Installing Maven; Connection Pooling; Summary.
- Chapter 3: Building a Simple ApplicationA Simple Application; A First Attempt; Writing Data; Reading Data; Updating Data; Persistence Contexts; Removing Data; A Note on Transactions; Writing Our Sample Application; Add a Ranking; Update a Ranking; Remove a Ranking; Find Average Ranking for a Subject's Skill; Find All Rankings for a Subject; Find the Highest-Ranked Subject for a Skill; Summary; Chapter 4: The Persistence Life Cycle; Introducing the Life Cycle; Entities, Classes, and Names; Identifiers; Entities and Associations; Saving Entities; Object Equality and Identity; Loading Entities.
- Merging EntitiesRefreshing Entities; Updating Entities; Deleting Entities; Cascading Operations; Lazy Loading, Proxies, and Collection Wrappers; Querying Objects; Summary; Chapter 5: An Overview of Mapping; Why Mapping Cannot Easily Be Automated; Primary Keys; Lazy Loading; Associations; The One-to-One Association; The One-to-Many and Many-to-One Association; The Many-to-Many Association; Applying Mappings to Associations; Other Supported Features; Specification of (Database) Column Types and Sizes; The Mapping of Inheritance Relationships to the Database; Primary Key.
- The Use of SQL Formula-Based PropertiesMandatory and Unique Constraints; Summary; Chapter 6: Mapping with Annotations; Creating Hibernate Mappings with Annotations; The Cons of Annotations; The Pros of Annotations; Choosing Which to Use; JPA 2 Persistence Annotations; Entity Beans with @Entity; Primary Keys with @Id and @GeneratedValue; Generating Primary Key Values with @SequenceGenerator; Generating Primary Key Values with @TableGenerator; Compound Primary Keys with @Id, @IdClass, or @EmbeddedId; Database Table Mapping with @Table and @SecondaryTable; Persisting Basic Types with @Basic.
- Omitting Persistence with @TransientMapping Properties and Fields with @Column; Modeling Entity Relationships; Mapping an Embedded (Component) One-to-One Association; Mapping a Conventional One-to-One Association; Mapping a Many-to-One or One-to-Many Association; Mapping a Many-to-Many Association; Inheritance; Single Table; Joined Table; Table per Class; Choosing Between Inheritance Types When Modeling Inheritance; Other JPA 2 Persistence Annotations; Temporal Data; Element Collections; Large Objects; Mapped Superclasses; Ordering Collections with @OrderColumn; Named Queries (HQL or JPQL).