Method that takes the object being persisted by the specified ExecutionContext
and generates a value (based on the contents of the object). This could be used, for example,
to generate a unique value for the object based on some of its fields.
ec - execution context
obj - The object (persistent, or being persisted)
extensions - Extensions on the field being generated