Overriding doDML() to populate an attribute with a gapless sequence
In this recipe, we will go over a generic programming technique that you can use to assign gapless database sequence values to entity object attributes. A gapless sequence will produce values with no gaps in between them. The difference between this technique and the one presented in the Using a custom property to populate a sequence attribute recipe, is that the sequence values are assigned during the transaction commit cycle instead of during component creation.
We will add this generic functionality to the custom entity framework class that we created in the Setting up BC base classes recipe in Chapter 1, Pre-requisites to Success: ADF Project Setup and Foundations ...