IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
    
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerworks > My developerWorks >  Dashboard > WebSphere eXtreme Scale V6.1 User Guide > ... > ObjectGrid EntityManager Programming API > Basic EntityManager tutorial
developerWorks
Log In   View a printable version of the current page.
Overview Connect Spaces Forums Wikis
Basic EntityManager tutorial
Added by bnewport, last edited by saif.patel@us.ibm.com on Feb 10, 2009  (view change)
Labels: 


Getting Started Examples Reference API documentation

See the WebSphere eXtreme Scale Wiki for links to eXtreme Scale Version 7.0 documentation.
If you log in with your developerWorks ID, you can leave comments and feedback for the development team.



Use this tutorial to develop an ObjectGrid that can store order information for a Web site.

Each step in the tutorial builds on the previous step. Follow each of the steps to build a simple Java SE 5 application that uses an in-memory, local ObjectGrid. The entities use Java SE 5 annotations and generics.

Tutorial Requirements

Ensure that you have met the following requirements before you begin the tutorial:

  • Java SE 5
  • objectgrid.jar file in the classpath

Step 1: Create a local ObjectGrid with one entity.

The following list provides the features that are demonstrated when creating a local ObjectGrid with one entity:

  • Create a local ObjectGrid.
  • Define and register a single entity.
  • Persist and find an entity.

Step 2: Create simple relationship.

The following list provides the additional features that are demonstrated when creating a simple relationship:

  • Define and register two related entities.
  • Persist an entity with cascade.
  • Find an entity with a relationship.

Step 3: Create a bidirectional relationship with cascading persists.

The following list provides the additional features that are demonstrated when creating a bidirectional relationship with cascading persists:

  • Define and register several related entities using automatic discovery.
  • Use OrderBy to order an entity List relationship.
  • Persist an entity with cascade linking to other managed entities.
  • Find an entity with a relationship.

Step 4: Update entities.

In addition to updating entities, this step demonstrates how to find and update an entity.

Step 5: Updating and removing entities by using an index

The following list provides the additional features that are demonstrated when updating and removing entities by using an index:

  • Define an index.
  • Find, remove, and update entities in a single transaction by using a range index.

Step 6: Updating and removing entities by using a query

The following list provides the additional features that are demonstrated when updating and removing entities by using a query:

  • Find, remove, and update entities in a single transaction using a query.
Wiki Disclaimer and License
© Copyright IBM Corporation 2007,2009. All Rights Reserved.
Docs Basic EntityManager tutorial step 1 (WebSphere eXtreme Scale V6.1 User Guide)
Docs Basic EntityManager tutorial step 2 (WebSphere eXtreme Scale V6.1 User Guide)
Docs Basic EntityManager tutorial step 3 (WebSphere eXtreme Scale V6.1 User Guide)
Docs Basic EntityManager tutorial step 4 (WebSphere eXtreme Scale V6.1 User Guide)
Docs Basic EntityManager tutorial step 5 (WebSphere eXtreme Scale V6.1 User Guide)
Docs Basic EntityManager tutorial step 6 (WebSphere eXtreme Scale V6.1 User Guide)


 
    About IBM Privacy Contact