Integracja aplikacji Ćwiczenie 4
package books ;
import java.util.List;
public class BookList {
private List<Book> books;
public List<Book> getBooks() { return books;
)
public void setBooks(List<Book> books) { this.books = books; i
@XmlRootElement (name = "books") przed nagłówkiem klasy 0XmlElement (name = "book") przed metodą getBooks ()
package books; import java.util.List;
import javax.xml.bind.annotation.XmlElement; import javax. xml.bind. annotation. XmlRootElement;
@XmlRootElement(name = "books") public class BookList {
private List<Book> books;
0XmlElement(name = "book") public List<Book> getBooks() { return books;
public void setBooks(List<Book> books) { this.books = books;