[jboss-user] [JBossWS] - Re: Return value for Java bean always empty

lowecg2004 do-not-reply at jboss.com
Mon Oct 30 06:39:47 EST 2006


Hi Jason,

Here is the code that I had for StockData:

package org.test;
  | 
  | import java.io.Serializable;
  | 
  | public class StockData
  |   implements Serializable
  | {
  |   /**
  |    * 
  |    */
  |   private static final long serialVersionUID = 1L;
  |   
  |   private String title;
  |   private int issue;
  |   private int value;
  |   private boolean hasStock;
  |   
  |   public StockData() {
  |   }
  |   
  |   public StockData(String title,
  |             int issue,
  |             int value,
  |             boolean hasStock) {
  |     this.title = title;
  |     this.issue = issue;
  |     this.value = value;
  |     this.hasStock = hasStock;
  |   }
  |   
  |   void setTitle(String title) {
  |     this.title = title;
  |   }
  |   String getTitle() {
  |     return title;
  |   }
  |   void setIssue(int issue) {
  |     this.issue = issue;
  |   }
  |   int getIssue() {
  |     return issue;
  |   }
  |   void setValue(int value) {
  |     this.value = value;
  |   }
  |   int getValue() {
  |     return value;
  |   }
  |   void setHasStock(boolean hasStock) {
  |     this.hasStock = hasStock;
  |   }
  |   boolean isHasStock() {
  |     return hasStock;
  |   }
  | }

Thanks for taking the time to help me with this,

Chris.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981731#3981731

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981731



More information about the jboss-user mailing list