Hibernate recipes. (2015)
- Record Type:
- Book
- Title:
- Hibernate recipes. (2015)
- Main Title:
- Hibernate recipes
- Further Information:
- Note: Joseph Ottinger, Srinivas Guruzu, Gary Mak.
- Authors:
- Ottinger, Joseph B
Guruzu, Srinivas
Mak, Gary - Contents:
- At a Glance; Chapter 1: Starting with Hibernate; 1-1. Setting Up a Project; Problem; Solution; How It Works; Installing Eclipse; Installing Maven; Setting Up a Maven Project; Creating a Maven Project Using an Archetype; Running Unit Tests; Creating Modules; 1-2. Setting Up a Database; Problem; Solution; How It Works: Setting Up H2; Configuring Hibernate; Setting Up the H2 Console to View Data; How It Works: Setting Up Derby; Installing Derby; Creating a Derby Database Instance; Creating the Tables (Relational Model); 1-3. Configuring Hibernate; Problem; Solution; How It Works. Configuration; Programmatic Configuration; XML Configuration; Opening and Closing Sessions; Creating Mapping Definitions; Retrieving and Persisting Objects; 1-4. Using the JPA EntityManager; Problem; Solution; How It Works; 1-5. Enabling Logging in Hibernate; Problem; Solution; How It Works; Inspecting the SQL Statements Issued by Hibernate; Enabling Live Statistics; Summary; Chapter 2: Basic Mapping and Object Identity; 2-0. Using JPA Annotations; Problem; Solution; How It Works; 2-1. Providing an ID for Persistence; Problem; Solution; How It Works; Using the Database Sequence. Using an Increment Generator; Using the Hilo Generator; Enhanced Sequence Style Generator; Enhanced Table Generator; 2-2. Creating a Composite Key in Hibernate; Problem; Solution; How It Works; Multiple ID Properties Declared Within the Entity; Multiple ID Properties as an Identifier Type; Composite ID as a Property Using aAt a Glance; Chapter 1: Starting with Hibernate; 1-1. Setting Up a Project; Problem; Solution; How It Works; Installing Eclipse; Installing Maven; Setting Up a Maven Project; Creating a Maven Project Using an Archetype; Running Unit Tests; Creating Modules; 1-2. Setting Up a Database; Problem; Solution; How It Works: Setting Up H2; Configuring Hibernate; Setting Up the H2 Console to View Data; How It Works: Setting Up Derby; Installing Derby; Creating a Derby Database Instance; Creating the Tables (Relational Model); 1-3. Configuring Hibernate; Problem; Solution; How It Works. Configuration; Programmatic Configuration; XML Configuration; Opening and Closing Sessions; Creating Mapping Definitions; Retrieving and Persisting Objects; 1-4. Using the JPA EntityManager; Problem; Solution; How It Works; 1-5. Enabling Logging in Hibernate; Problem; Solution; How It Works; Inspecting the SQL Statements Issued by Hibernate; Enabling Live Statistics; Summary; Chapter 2: Basic Mapping and Object Identity; 2-0. Using JPA Annotations; Problem; Solution; How It Works; 2-1. Providing an ID for Persistence; Problem; Solution; How It Works; Using the Database Sequence. Using an Increment Generator; Using the Hilo Generator; Enhanced Sequence Style Generator; Enhanced Table Generator; 2-2. Creating a Composite Key in Hibernate; Problem; Solution; How It Works; Multiple ID Properties Declared Within the Entity; Multiple ID Properties as an Identifier Type; Composite ID as a Property Using a Component Type; 2-3. saveOrUpdate()) in Hibernate; Problem; Solution; How It Works; 2-4. Dynamic SQL Generation in Hibernate; Problem; Solution; How It Works; Summary; Chapter 3: Component Mapping; 3-1. Implementing a Value Type as a Component; Problem; Solution. How It Works; Using Hibernate XML Mapping; Using JPA Annotations; 3-2. Nesting Components; Problem; Solution; How It Works; 3-3. Adding References in Components; Problem; Solution; How It Works; 3-4. Mapping a Collection of Components; Problem; Solution; How It Works; 3-5. Using Components as Keys to a Map; Problem; Solution; How It Works; Summary; Chapter 4: Inheritance and Custom Mapping; 4-1. Mapping Entities with Table per Class Hierarchy; Problem; Solution; How It Works; 4-2. Mapping Entities with Table per Subclass; Problem; Solution; How It Works. 4-3. Mapping Entities with Table per Concrete Class; Problem; Solution; How It Works; 4-4. Mapping Entities with Table per Class with a Mapped Superclass; Problem; Solution; How It Works; 4-5. Custom Mappings; Problem; Solution; How It Works; Summary; Chapter 5: Many-to-One and One-to-One Mapping; 5-1. Using Many-To-One Associations; Problem; Solution; How It Works; 5-2. Using a Many-to-One Association with a Join Table; Problem; Solution; How It Works; 5-3. Using Lazy Initialization on Many-to-One Associations; Problem; Solution; How It Works. … (more)
- Edition:
- Second edition
- Publisher Details:
- Berkeley, California : Apress
- Publication Date:
- 2015
- Copyright Date:
- 2015
- Extent:
- 1 online resource (xx, 284 pages), illustrations
- Subjects:
- 005.133
Computer science
Java (Computer program language)
COMPUTERS -- Programming Languages -- Java
Java (Computer program language)
Computers -- Software Development & Engineering -- General
Software Engineering
Java (Computer program language)
Software engineering
Programming & scripting languages: general
Electronic books - Languages:
- English
- ISBNs:
- 9781484201275
1484201272
1484201280
9781484201282 - Related ISBNs:
- 9781484201282
- Notes:
- Note: Includes bibliographical references and index.
Note: Online resource; title from PDF title page (SpringerLink, viewed March 17, 2015). - Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.374820
- Ingest File:
- 02_355.xml