Skip to content

Instantly share code, notes, and snippets.

@JosePaumard
Created January 12, 2017 08:40
Show Gist options
  • Save JosePaumard/ca7b1fc3de6630d1df626ffb6c444298 to your computer and use it in GitHub Desktop.
Save JosePaumard/ca7b1fc3de6630d1df626ffb6c444298 to your computer and use it in GitHub Desktop.
package org.paumard.movies.model;
import java.util.Set;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name="movies")
@XmlAccessorType(XmlAccessType.FIELD)
public class SetOfMovies {
@XmlElement(name="movie")
private Set<Movie> movies;
public Set<Movie> getMovies() {
return movies;
}
public void setMovies(Set<Movie> movies) {
this.movies = movies;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment