Emeraldjb Extending the Generated Code |
This section describes how generated values objects can be extended to add custom code.
Generation Gap Pattern
One of the issues with code generation is the ability to extend it when necessary. Emeraldjb addresses this issue with the Generation Gap pattern. In paticular cases it makes sense to add custom mehtods to the code base for performing common tasks. One example is the ability to compare values objects for equality. In this case you may want to create a custom method to compare the two without date and time stamp members. To facilitate this type of customization Emeraldjb provides a Core values class that can be extended through a Values class. This Values class extends the generated Core and is generated only once. This means that you can add your custom code the values class without the worry of it being overwritten the next time you run the generator.


