The Hibernate Cache Wizard
The Hibernate Cache Wizard simplifies the task of specifying cacheing options for persistent items within your application. To start the Hibernate Cache Wizard, right-click a Hibernate configuration file and select Hibernate Cache Wizard... .

The Hibernate Cache Wizard consists of a sequence of 3 screens:
- Persistent Classes Caching
- Collections Caching
- Regions Caching.
Persistent Classes Caching
The first screen allows you to designate persistent classes for caching. The screen displays two lists. The left-hand list shows persistent classes from the selected configuration file that have not yet been designated for caching. The right-hand list shows the persistent classes you have already designated for caching. Use the control buttons in the middle to designate classes for caching (select on the left to move to the right) or to undesignate classes for caching (select on the right to move to the left).
In the right-hand list, the designated classes are displayed with the cacheing strategy for the class at the end of its name. This can be changed by right-clicking the class in the right-hand list and selecting a different strategy from the context menu.
Collections Caching
The second screen works just like the first screen except that it deals with collections from the selected configuration.
Regions Caching
The final screen allows you to group together classes and collections, designated for caching in the previous screens, into caching regions. The screen displays two lists. The left-hand list shows the classes and collections designated for caching. The right-hand list shows the same objects as a tree.
At first the right-hand tree consists of the objects to cache with themselves as the only child node to themselves. To group some objects together as a region, select the first-level node for one of the objects in the right-hand list, select, in the left-hand list, the other objects you want to group with this object, and then click the Move to region button. You can then add more objects to the region, if you want.
Here are two other points about this screen in the wizard. The region name can be changed by directly editing the node name in the right-hand list. Also, to remove an object from a caching region, select it in the left-hand list, select another region or a node with no children in the right-hand list, and then click the Move to region button.
Once your done, click on the Finish button to save or click on the Cancel button to discard the settings.