[jboss-user] [JBossWS] - [JBossWS 2.0.1] Unmarshall POJO field with protected setter
Jeilong
do-not-reply at jboss.com
Wed Oct 10 08:27:37 EDT 2007
I have a SLSB with @WebService. I find that pojos have their @Id field set to null when marshalled despite it have a value in the SLSB. In the code fragment below you can see the field has a protected setters. When this signature is changed to public it works as expected.
Problem is that, by design, I cannot make the setter public on an identifying field. Is there a nother way to (un)marshall fields with protected setters?
| @Entity
| public class Foo implements Serializable {
|
| private Long fooId;
|
| protected Foo() {
| super();
| }
|
| @Id
| public Long getFooId() {
| return fooId;
| }
|
| protected void setFooId(Long fooId) {
| this.fooId = fooId;
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093454#4093454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093454
More information about the jboss-user
mailing list