Hi,
I have a class say Message which contains 2 fields. This class doe not have
any setters as they are initialized within constructor. When I generate code
using Apache CXF, it generates code with no fields in it. But when I add
setters for both fields, it generates code with both fields
Can anyone please explain reason for this behavior?
public class Message implements Serializable{
private Long id;
private String message;
public Driver getMessage() {
return driver;
}
public Driver getId() {
return driver;
}
}
Regards
Atif Riaz
--
View this message in context:
http://cxf.547215.n5.nabble.com/Apache-CXF-requires-a-setter-in-addition-to-getter-to-generate-correct-code-tp5771118.html
Sent from the cxf-user mailing list archive at Nabble.com.