WebSphere eXtreme Scale Product Overview > Tutorials > Tutorials, examples, and samples



Entity manager tutorial: Overview


The tutorial for the entity manager shows you how to use WebSphere eXtreme Scale to store order information on a Web site. You can create a simple Java™ Platform, Standard Edition 5 application that uses an in-memory, local eXtreme Scale. The entities use Java SE 5 annotations and generics.


Before you begin

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

  1. Entity manager tutorial: Creating an entity class
    The first step of the entity manager tutorial shows you how to create a local ObjectGrid with one entity by creating an Entity class, registering the entity type with eXtreme Scale, and storing an entity instance into the cache.

  2. Entity manager tutorial: Forming entity relationships
    Create a simple relationship between entities by creating two entity classes with a relationship, registering the entities with the ObjectGrid, and storing the entity instances into the cache.

  3. Entity manager tutorial: Order Entity Schema
    Create four entity classes by using both single and bidirectional relationships, ordered lists, and foreign key relationships. The EntityManager APIs are used to persist and find the entities. Building on the Order and Customer entities that are in the previous parts of the tutorial, this tutorial step adds two more entities: the Item and OrderLine entities.

  4. Entity manager tutorial: Updating entries
    To change an entity, you can find the instance, update the instance and any referenced entities, and commit the transaction.

  5. Entity manager tutorial: Updating and removing entries with an index
    You can use an index to find, update, and remove entities.

  6. Entity manager tutorial: Updating and removing entries by using a query
    You can update and remove entities by using a query.



Parent topic

Tutorials, examples, and samples


+

Search Tips   |   Advanced Search