Skip to content

0.6.1

Compare
Choose a tag to compare
@sai-pullabhotla sai-pullabhotla released this 10 Oct 21:55
· 186 commits to master since this release
  • Implemented support for Entity Listeners. Entity Listeners help your application to react to certain events that occur in the persistence mechanism. For example, you could define a Callback method to trap the PreUpdate event and update certain fields of the entity, such as Last Modified Timestamp. The following annotations were introduced to support this feature:
    • EntityListeners
    • EntityListener
    • ExcludeDefaultListeners
    • ExcludeSuperclassListeners
    • PreInsert
    • PostInsert
    • PreUpdate
    • PostUpdate
    • PreUpsert
    • PostUpsert
    • PreDelete
    • PostDelete
  • Added support for mapping and persisting of Enum types. Entities, MappedSuperClasses and Embeddables can now define properties with an Enum type and Catatumbo takes care of mapping and persistence. Enum types are stored into the Datastore as String that is same as the name of the Enum constant.
  • Added support for mapping of java.util.Map and its implementations. Maps are stored as Embedded Entity in the Google Cloud Datastore. Keys in the Maps are expected to be of type String. Values in the Map can be of the following types:
    • Boolean
    • String
    • Long
    • Double
    • DatastoreKey
  • Added support for mapping and persisting java.util.Set and its implementations. Sets are stored as Array properties in the Google Cloud Datastore. Sets may contain the following types of items:
    • Boolean
    • String
    • Long
    • Double
    • DatastoreKey
  • Enhanced the support for persisting java.util.List. The framework now supports List and any of its implementations.
  • Updated the Caching mechanism for EntityMetadata to use an unbounded cache instead of a fixed LRUCache.
  • Updated Catatumbo to use the latest version, 0.4.0, of Google Cloud Java Client for Datastore API.