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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...