Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Title
Copyright
Dedication
Contents at a Glance
Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Getting Started with Hibernate OGM
Features and Expectations
Hibernate OGM Architecture
Persisting Data
Querying Data
Get the Hibernate OGM Distribution
Getting Hibernate OGM from the Maven Central Repository
Getting Hibernate OGM from the Maven Command Line
Adding MongoDB Artifacts
Getting a Hibernate OGM Distribution Using the NetBeans IDE
Getting the Hibernate OGM Distribution Using the Eclipse IDE
Obtain the MongoDB Distribution
Summary
Chapter 2: Hibernate OGM and MongoDB
Configuring MongoDB-Hibernate OGM Properties
Data Storing Representation
Storing Entities
Storing Primary Keys
Storing Associations
Managing Transactions
Managing Queries
Summary
Chapter 3: Bootstrapping Hibernate OGM
Brief Overview of JPA
Brief Overview of JTA
MongoDB and Transactions
Brief Overview of Hibernate Native API
Bootstrapping Hibernate OGM Using JPA
Bootstrap Hibernate OGM Using Hibernate Native API
Hibernate OGM Obsolete Configuration Options
Summary
Chapter 4: Hibernate OGM at Work
General Prerequisites
Java SE and MongoDB.the Hello World Example
Prerequisites
Developing
Testing
Hibernate OGM via Hibernate Native API
Hibernate OGM in a Non-JTA Environment (JDBC Transactions, Apache Tomcat 7)
Hibernate OGM in a Standalone JTA Environment (JBoss JTA, Apache Tomcat 7)
Hibernate OGM in a Built-in JTA Environment (no EJB, GlassFish AS 3)
Hibernate OGM in a Built-in JTA Environment (EJB 3/BMT, GlassFish AS 3)
Hibernate OGM in a Built-in JTA Environment (EJB 3/CMT, GlassFish AS 3)
Hibernate OGM via the Java Persistence API (JPA 2.0)
Hibernate OGM in a Built-in JTA Environment (EJB 3, GlassFish AS 3)
Hibernate OGM in a Built-in JTA Environment (EJB 3, JBoss AS 7)
Hibernate OGM in a Standalone JTA environment (Apache Tomcat 7)
Hibernate OGM in a Built-in JTA Environment (JBoss AS 7 and Seam 3 Application)
Hibernate OGM in a Built-in JTA Environment (GlassFish 3 and Spring 3 Application)
Hibernate OGM in a non-JTA Environment (RESOURCE_LOCAL, Apache Tomcat 7)
Synthesis
Hibernate OGM via JPA in an EE Container
Hibernate OGM via Hibernate Native API in an EE Container
Hibernate OGM via JPA in Standalone JTA
Hibernate OGM via Hibernate Native API in Standalone JTA
Hibernate OGM via JPA in Non-JTA
Hibernate OGM via Hibernate Native API in Non-JTA
Summary
Chapter 5: Hibernate OGM and JPA 2.0 Annotations
Java Supported Types
Eager and Lazy Loading Considerations
Cascadable Operations Considerations
Entity Mapping
@Entity Annotation
@Id Annotation
@EmbeddedId Annotation
@IdClass Annotation
@Table Annotation
@Column Annotation
@Temporal Annotation
@Transient Annotation
@Embedded and @Embeddable Annotations
@Enumerated Annotation
@Cacheable Annotation
@MappedSuperclass Annotation
@ElementCollection Annotation
JPA Lifecycle Events @EntityListeners, @ExcludeDefaultListeners, @ExcludeSuperclassListeners Annotations
@Version Annotation
@Access Annotation
Associations
Direction in Entity Associations
Unsupported JPA 2.0 Annotations
Summary
Chapter 6: Hibernate OGM Querying MongoDB
MongoDB Native Query
Hibernate OGM and CRUD Operations
Hibernate Search and Apache Lucene
Common Steps
Hibernate Search/Apache Lucene Querying.OGM via Native API
Hibernate Search/Apache Lucene Querying.OGM via JPA
Hibernate OGM JP-QL Parser
Summary
Chapter 7: MongoDB e-Commerce Database Model
MongoDB E-commerce Database Architecture
Model the Categories Collection (categories_c)
Model The Products Collection (products_c)
Model the Customers Collection (customers_c)
Model The Orders Collection (orders_c)
Model The Inventory Collection (inventory_c)
Summary
Chapter 8: MongoDB e-Commerce Database Querying
Display the Categories of Products
Display the Promotional Products
Display the Products From a Category
Search for a Product by Name
Find a Customer By E-mail And Password
Place an Order
Check the Inventory
Restore the Inventory
Considerations for Developing the Admin GUI
Summary
Chapter 9: Migrate MongoDB Database to Cloud
Migrating the MongoDB Database to the MongoHQ Cloud
Migrating the MongoDB Database to the MongoLab Cloud
Connecting to the MongoHQ or MongoLab Cloud Database
Summary
Chapter 10: Migrating RafaEShop Application on OpenShift
Creating a Free Account on OpenShift
Installing the OpenShift RHC Client Tools on Windows
Installing Ruby
Installing Git
Testing Ruby and Git from the Shell
Installing the OpenShift Gem
Fixing a Known Issue
Migrating the RafaEShop Application to OpenShift with JBoss AS 7
Monitoring the JBoss AS 7 Log
Commit Changes
Migrating the RafaEShop Application as a WAR
Migrating the RafaEShop Application as a Maven Project
Migrating the RafaEShop Application to OpenShift with GlassFish 3 AS
Monitoring GlassFish Start/Stop
Commit Changes
Fixing Known Issues
Monitoring the GlassFish Log
Test It!
Cautions
Good To Know
Disclaimer
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →