Skip to content

Entity to Key Value store mapping

Amresh edited this page Jul 11, 2013 · 4 revisions

Kundera, being a JPA object-mapper, maps entity class instances with data storage structure provided in underlying database.

Below is a simplified depiction of entity class to key-value pair mapping mechanism adopted by Kundera: (This is a result of saving Person entity with personId, personName and age fields set to "1", "John Smith" and 32 respectively).

Entity-KV Store Mapping

Points worth noting:

  1. Schema name defined in entity class is mapped to KV Store name.
  2. Table name and ID column value constitute major key.
  3. Rest of the column names are stored as minor keys.
  4. Value of columns are stored as byte array values.
Previous Home Next
Clone this wiki locally