| | \\ |
| | {include:OG_HEADER}\\ |
| | \\ |
| | |
| | | Use this tutorial to develop an ObjectGrid that can store order information for a Web site. |
| | | 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. |
| | |
| | h4. Tutorial Requirements |
| | |
| | Ensure that you have met the following requirements before you begin the tutorial: |
| | * Java SE 5 |
| | * objectgrid.jar file in the classpath |
| | |
| | h4. [Step 1: Create a local ObjectGrid with one entity.|Basic EntityManager tutorial step 1] |
| | |
| | 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. |
| | |
| | h4. [Step 2: Create simple relationship.|Basic EntityManager tutorial step 2] |
| | |
| | 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. |
| | |
| | h4. [Step 3: Create a bidirectional relationship with cascading persists.|Basic EntityManager tutorial step 3] |
| | |
| | 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. |
| | |
| | h4. [Step 4: Update entities.|Basic EntityManager tutorial step 4] |
| | |
| | In addition to updating entities, this step demonstrates how to find and update an entity. |
| | |
| | h4. [Step 5: Updating and removing entities by using an index|Basic EntityManager tutorial step 5] |
| | |
| | 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. |
| | |
| | h4. [Step 6: Updating and removing entities by using a query|Basic EntityManager tutorial step 6] |
| | |
| | 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. |
| | |
| | {include:OG_FOOTER} |