Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @XmlRootElement(name="institut")
- @XmlAccessorType(javax.xml.bind.annotation.XmlAccessType.NONE)
- @XmlType(propOrder= {"nom", "alumnes"})
- public class Institut {
- String nom;
- ArrayList<Alumne> alumnes = new ArrayList<Alumne>();
- public Institut(String nom, ArrayList<Alumne> alumnes) {
- super();
- this.nom = nom;
- this.alumnes = alumnes;
- }
- public Institut() {
- super();
- }
- @XmlElement(name = "nom")
- public String getNom() {
- return nom;
- }
- public void setNom(String nom) {
- this.nom = nom;
- }
- @XmlElementWrapper(name="alumnes")
- @XmlElement(name="alumne")
- public ArrayList<Alumne> getAlumnes() {
- return alumnes;
- }
- public void setAlumnes(ArrayList<Alumne> alumnes) {
- this.alumnes = alumnes;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement