Class ManagedAspectHandler
java.lang.Object
com.sap.cds.services.impl.persistence.ManagedAspectHandler
- All Implemented Interfaces:
EventHandler
Event handler for the "managed" aspect.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateManagedFields(EventContext context) Handler method that calculates the administrative data properties of entities with the "managed" aspect.
-
Constructor Details
-
ManagedAspectHandler
public ManagedAspectHandler()
-
-
Method Details
-
calculateManagedFields
Handler method that calculates the administrative data properties of entities with the "managed" aspect. Usually, these are the properties createdAt / createdBy and modifiedAt / modifiedBy, but it could be any property annotated with "@cds.on.insert" / "@cds.on.update" or "@odata.on.insert" / "@odata.on.update" annotations with matching values.- Parameters:
context- the event context
-