]
Work on FORGE-2232 started by George Gastaldi.
----------------------------------------------
Documenting how to create and test a command that creates Java code
-------------------------------------------------------------------
Key: FORGE-2232
URL:
https://issues.jboss.org/browse/FORGE-2232
Project: Forge
Issue Type: Sub-task
Components: Documentation
Affects Versions: 2.14.0.Final
Reporter: Antonio Goncalves
Assignee: George Gastaldi
Fix For: 2.x Future
The idea is to document commands that create new code ({{new}} commands). There are
several level of complexity and we should go step by step :
1. A command to create a [new constraint payload|FORGE-1620] is quite simple. It only
generates Java code to a specific directory
2. A command to create a [new package info|FORGE-2071] is a bit tricker because the
generate Java code is not a class per-se
3. A command to create a [new constraint validator|FORGE-1618] have several parameters
that can be used ({{type}} and {{targetConstraint}}). The case of the [JPA
Listener|FORGE-2093] is also important because the command taks a choice of parameters
({{POST_UPDATE}}, {{PRE_PERSIST}}...)