GenerateId
You can use the GenerateId method in the LocalKeyGenerator or KeyGenerator classes to generate an ID when creating a new object for which you require a primary key or surrogate key.
Callback Handlers
To receive callbacks, you must register a CallBackHandler with the generated database class, the entity class, or both. You can create a handler by extending the DefaultCallbackHandler class, or by implementing the interface, ICallbackHandler.
Client Database APIs
The generated package database class provides methods for managing the client database.