A schema member name is translated into a dynamic class field name according to the following rules:
-
The first type letter is translated into lowercase.
-
All characters that could be contained in a Java identifier are translated without change.
-
The other characters are discarded and the next letter is translated into uppercase.
-
If the resulting member name is already used as a member identifier, a numeric suffix is appended to that name. For example,
field becomes field_0.
Following these rules, my-address becomes myAddress.
Related Reference