Display the Component Properties window in the Adaptive Server plug-in and configure the following fields on the Persistence tab:
Primary Key Enter the name of the primary key type (see “Allowable primary key types”). If you have imported an EJB entity Bean, the primary key has been defined already.
Storage Component Enter or choose the name of the component that manages interaction with the database. See “Storage components” for more information.
Connection Cache Enter the name of a JDBC connection cache that connects to the database. The cache must have by-name access enabled and be installed on all servers where your component is installed.
Table If using mapped table fields, enter:
map:table
Where table is the database table name. If you are using binary storage, simply enter the table name.
Time Stamp When you are using mapped table fields, the Time Stamp setting determines how the server uses optimistic concurrency control to prevent overlapping updates to the same column. Specify:
A column name The name of a column in the mapped table that serves as a timestamp. By default, EJB Server uses a 4-byte integer timestamp and explicitly increments the value with each update.
The timestamp column need not be mapped to the component’s persistent state fields. Other processes that update the mapped table must increment the timestamp with each update.