|
It would also be nice if there's an easier way to add in a header at the top of each generated Java file. We need our copyright notice at the top of every file, and I find that I have to edit the template or copy an entire definition to use AOP to add the header.
Another thing is that it would be nice if I can add interfaces more easily to Base class definition in the DomainObject template. Right now the template calls getExtendsAndImplementsLitteral(), which is kind of cumbersome to intercept. It would be easier if the "extends" and "implements" are separate calls that are easier to intercept.
I have added the possibility to define the header. Documented in Developer's Guide: http://fornax-platform.org/cp/display/fornax/7.+Developer%27s+Guide+%28CSC%29#7.Developer%27sGuide%28CSC%29-FileHeader
I have improved the possibility to intercept extends and implements. Now you have the following functions:
String getExtendsAndImplementsLitteral(DomainObject domainObject) : String getExtendsLitteral(DomainObject domainObject) : String getExtendsClassName(DomainObject domainObject) : String getImplementsLitteral(DomainObject domainObject) : String getImplementsInterfaceNames(DomainObject domainObject) : String getImplementsInterfaceNames(Entity entity) : If you need to add interfaces you can intercept getImplementsInterfaceNames. |
|||||||||||||||||||||||||||||||||||||||||||||
Documentation in Developer's Guide:
http://fornax-platform.org/cp/display/fornax/7.+Developer%27s+Guide+%28CSC%29#7.Developer%27sGuide%28CSC%29-ChangeGenerationTemplates