[ROO-3589] web mvc json all creates json controllers for wrong @id property name Created: 12/Feb/15 Updated: 12/Feb/15
|Affects Version/s:||1.2.5.RELEASE, 1.3.1.RELEASE|
|Reporter:||Andreas Kohlbecker||Assignee:||Enrique Ruiz (DiSiD)|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Linux ubuntu Linux 3.13.0-45-generic
java version "1.6.0_34"
I am reverse engineering an existing mysql database scheme. Everything works well except the web mvc json all command creates in some cases *_Roo_Controller_Json.aj files which refer to a non existent JPA Entity getter: getId(). This seems to occur in cases where the field annotated with @Id is having a different name than id. Strangely this problem not always occurs when I create the application from scratch by executing the whole roo script (posted below).
The aspectj coompilation errors occure when the procet is compiled within the STS or by maven. Cleaning the target folder and starting the roo console afterwards is not causing any errors to pop up at the console.
The JPA Entity ITD looks like:
The web mvc json all command creates the file FrmwrkAuthItemController_Roo_Controller_Json.aj with a createFromJson() method in which the non existing getter getId() is used (code simplified).
Attached to this ticket is a backup of the roo project wich additionally also conatains a console.log file showing the compilation errors reported by the maven aspectj plugin. The attachemnt jacq_input.scheme.zip contains the database scheme on which the project is based on (created by database introspect)