Class GenerateUUIDHandler

java.lang.Object
com.sap.cds.services.impl.persistence.GenerateUUIDHandler
All Implemented Interfaces:
EventHandler

public class GenerateUUIDHandler extends Object implements EventHandler
  • Constructor Details

    • GenerateUUIDHandler

      public GenerateUUIDHandler()
  • Method Details

    • fillUUID

      @HandlerOrder(11000) public void fillUUID(EventContext context)
      Make sure, that any entity that is going to be inserted in the given create event context has a value set in the given key element of type "cds.UUID". If no value is currently set, a new UUID is generated.
      Parameters:
      context - the create event context