package org.jersey2.jaxbcontext.example;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ClassRoom {
private int cid;
private String classname;
private List<Student> students;
@XmlAttribute
public int getCid() {
return cid;
}
public void setCid(int cid) {
this.cid = cid;
}
public String getClassname() {
return classname;
}
public void setClassname(String classname) {
this.classname = classname;
}
@XmlElementWrapper
public List<Student> getStudents() {
return students;
}
public void setStudents(List<Student> students) {
this.students = students;
}
}