[jboss-user] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService

xiangyingbing do-not-reply at jboss.com
Wed Nov 4 05:12:17 EST 2009


package com.ybxiang.ejbws;
  | 
  | import javax.xml.bind.annotation.XmlSeeAlso;
  | 
  | @XmlSeeAlso({Human.class})
  | public class Animal implements java.io.Serializable{
  | 	private String name;
  | 	private Long age;
  | 	public String getName() {
  | 		return name;
  | 	}
  | 	public void setName(String name) {
  | 		this.name = name;
  | 	}
  | 
  | 	public Long getAge() {
  | 		return age;
  | 	}
  | 	public void setAge(Long age) {
  | 		this.age = age;
  | 	}	
  | 
  | 	public String toString(){
  | 		return "Animal-->name:"+this.getName()+",age:"+this.getAge();
  | 	}
  | }
  | 

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

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



More information about the jboss-user mailing list