Entity Annotation

The Entity annotation is the principal metadata used to indicate an object as persistable. No XML or configuration file needed! There is no additional configuration needed in order to make an object persistable. The entity will create a system object upon invoking a save or fetch for that entity type

Attribute Type Default Description

cachable

Boolean false Onyx Database utilizes off-heap caching. This will identify an entity as cached using an off-heap cache.

cacheSize

Integer 0 The maximum cache size in records

fileName

String File name is used to define the file in which the entity data will be persisted into. You can define any number of entity types to a file name. For each partition a new file will be created.
  1. Identifier Annotation