Yes it's possible. You're already doing it for firstname and lastname. From what you've got it seems like you already know what to do. Maybe if you could post the code you tried which didn't do what ...
I have previously discussed using JAXB2 Basic Plugins to add common methods to JAXB-generated Java classes. In this blog post, I look at another approach for performing the same behaviors on ...
Classes, fields, methods, constructors, and objects are the building blocks of object-based Java applications. This Java tutorial teaches you how to declare classes, describe attributes via fields, ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results