Created
January 12, 2017 08:40
-
-
Save JosePaumard/ca7b1fc3de6630d1df626ffb6c444298 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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