Open Forgev41 opened 9 years ago
Hi @Forgev41
At first, thanks for your report and your interest on gvNIX project.
In the second place, you are right. Datatables aspectJ file should be updated when Controller is configured to remove some actions like update or create.
Unfortunately, there is not workaround without push-in.
I will take in mind this issue for next version of gvNIX.
Best Regards and thank you again!
XxxController_Roo_GvNIXDatatables.aj not updated for changes in the Xxxcontroller.java class. When adding "update=false, delete=false" to the controller class, the XxxController_Roo_Controller.aj is updated by removing the update and delete methods, however for the XxxController_Roo_GvNIXDatatables.aj this is not the case. This in turn leads to errors, as described below. An example As an example I have the Spring roo script below
In some use cases, like transactions, you don't want the user to update or delete, so I changed the PetController.java class by adding "update=false, delete=false". So old:
new:
The effect is that in PetController_Roo_Controller.aj file the methods for update and delete are removed.
HOWEVER In the PetController_Roo_GvNIXDatatables.aj file, the update and delete method are not removed. This results in the errors:
Questions: