Class GenerateUUIDHandler
java.lang.Object
com.sap.cds.services.impl.persistence.GenerateUUIDHandler
- All Implemented Interfaces:
EventHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillUUID(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".
-
Constructor Details
-
GenerateUUIDHandler
public GenerateUUIDHandler()
-
-
Method Details
-
fillUUID
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
-