I'm trying to gwt setup a project that has a small set of RooEntity classes. Some are simple entities, and some are association table entities.
When I first start the Roo shell, it looks at my entities and produces the following warnings (one for each association table):
Type 'com.ittools.rootest.UserRoles' can't be proxied as it doesn't have a version accessor method
OK, fair enough. I go to one of the association table entity definitions and add "version" to the versionField parameter in the RooEntity annotation (calling it anything other than "version" results in other errors.)
After saving the file, Roo produces another warning (in red this time):
The field type com.ittools.rootest.UserRolesPK of 'getId' in type UserRoles is not currently support by GWT and will not be added to the scaffolded application.
Then there's a bunch of log entries as Roo is generating a bunch of client\managed\request\*, client\managed\ui\*, client\managed\activity\* files, then immediately does "Undo create" on all of them, finally winding up with an error:
java.lang.IllegalStateException: java.lang.IllegalArgumentException: Id unavailable for 'com.ittools.rootest.UserRoles' - required for GWT support
So, is there a way to tell Roo/GWT not to try to generate UI and proxy code for a particular entity? Or get the generation step to proceed and just skip things it can't handle? This error leaves me without an ApplicationRequestFactory, ApplicationEntityTypesProcessor, ApplicationMasterActivities, ApplicationDetailsActivities, etc.
When I first start the Roo shell, it looks at my entities and produces the following warnings (one for each association table):
Type 'com.ittools.rootest.UserRoles' can't be proxied as it doesn't have a version accessor method
OK, fair enough. I go to one of the association table entity definitions and add "version" to the versionField parameter in the RooEntity annotation (calling it anything other than "version" results in other errors.)
After saving the file, Roo produces another warning (in red this time):
The field type com.ittools.rootest.UserRolesPK of 'getId' in type UserRoles is not currently support by GWT and will not be added to the scaffolded application.
Then there's a bunch of log entries as Roo is generating a bunch of client\managed\request\*, client\managed\ui\*, client\managed\activity\* files, then immediately does "Undo create" on all of them, finally winding up with an error:
java.lang.IllegalStateException: java.lang.IllegalArgumentException: Id unavailable for 'com.ittools.rootest.UserRoles' - required for GWT support
So, is there a way to tell Roo/GWT not to try to generate UI and proxy code for a particular entity? Or get the generation step to proceed and just skip things it can't handle? This error leaves me without an ApplicationRequestFactory, ApplicationEntityTypesProcessor, ApplicationMasterActivities, ApplicationDetailsActivities, etc.
Comment