Closed cr0man closed 9 years ago
Thank you very much for reporting this issue! I'll have a look into it, and I think I know why this is. Because the plugin uses the already generated code model of the classes using the group to determine the correct format of the getters and setters, if a group isn't directly used in a complexType definition, no getters or setters will be generated for it. As a workaround, try adding a complexType DIRECTLY referencing the groups "ServicePropertyGroup" and "AirportGroundServicePropertyGroup", and see whether the interfaces are generated correctly in this case. This issue is already documented in the README file, but I haven't found a cleaner solution for it yet. The main reason why I did it this way are other possible plug-ins somewhere in the plugin chain of the XJC. They might modify method signatures etc. and might not be aware of my plugin. So, the safest solution was to simply "copy back" the method signatures of setXXX and getXXX from the already generated implementing classes. However, if there are no complexTypes referencing the group directly, an implementation cannot be found. Hope I could help you! Mirko
Now, the plan for resolving this is:
I will be happy to test the solution when is implemented.
Hi, could you please let me know if the workaround works for you? Maybe it’s a different issue…
Mirko
Am 2014-11-07 um 11:01 schrieb cr0man notifications@github.com:
I will be happy to test the solution when is implemented.
— Reply to this email directly or view it on GitHub.
The issue has been resolved now in release 1.3.6
First of all, congratulations for writing this plugin. It is really helpful, however I think I run into an issue that made me stop using it. Sorry for not being able to provide a full project describing the problem, but I will try to describe as much as possible here.
Consider this fragment of schema (full schema is available here http://www.aixm.aero/public/standard_page/download.html):
Take a look at the groups: AirportSuppliesServicePropertyGroup, AirportGroundServicePropertyGroup, ServicePropertyGroup.
What the plugin generates (version 1.2.2 and 1.3.0) is:
with all fields and corresponding methods defined in the schema.
with getter and setters according to AirportSuppliesServicePropertyGroup schema.
with no getters and setters
with no getters and setters
It seems that group-interface works only on the first level of groups.