The Kodo distribution comes with a number of examples that illustrate the usage of various features.
The files for this sample are located in the samples/appid directory of the Kodo installation. This sample shows how to use application identity. The GovernmentForm class uses a static inner class as its application identity class. The Main class is a simple JDO application that allows you to create and manipulate persistent GovernmentForm instances.