Skip to content

Now manage the inheritance in model

Compare
Choose a tag to compare
@opcoach opcoach released this 25 Apr 17:24
· 258 commits to master since this release

This release fixes mainly the issue #13. There was a problem when there was inheritance in the model.

For instance if we have in the model : B extends A (A <--- B) and the following namings M{0} and M{0}Impl for model generation and Dev{0}Interface and Dev{0}Impl for the developper structure, we had before (with version 1.0.0) :

  • for interfaces : MA <--- DevAInterface and MA <--- MB <--- DevBInterface
  • for implementations : MA <-- DevAImpl and MB <---- DevBImpl

With this new version we have the correct inheritance :

  • for interfaces : MA <--- DevAInterface <--- MB <-- DevBInterface
  • for implementation : MA <--- MAImpl <-- DevAImpl <---- MBImpl <--- DevBImpl

To make it working manuel steps must be proceeded :
This issue is fixed now with the following process :

  • select dynamic templates in the genmodel
  • set the templates directory to : 'yourProjectName'/templates in the genmodel
  • generate the dev structure (it will create a specific Class.javajet files in the templates directory)
  • generate again the model structure
  • right click on the src-gen and organize imports.

It will be simplified later.

Thanks to tcharl (https://github.com/Tcharl) for its initial contribution.