Commit 51984c35 by Tuomas Riihimäki

Fix rest pojos

1 parent dfaea3ec
......@@ -2,12 +2,11 @@ package fi.codecrew.moya.rest.pojo;
import java.util.List;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class CardRoot {
@XmlElementWrapper(name = "cards")
//@XmlElementWrapper(name = "cards")
private List<PrintedCardRestPojo> cards;
public List<PrintedCardRestPojo> getCards() {
......
......@@ -2,27 +2,26 @@ package fi.codecrew.moya.rest.pojo;
import java.util.List;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ReaderEventRestRoot {
@XmlElementWrapper(name = "readerEvents")
private List<ReaderEventRestPojo> readers;
// @XmlElementWrapper(name = "readerEvents")
private List<ReaderEventRestPojo> readerEvents;
public ReaderEventRestRoot() {
}
public ReaderEventRestRoot(List<ReaderEventRestPojo> parsed) {
readers = parsed;
setReaderEvents(parsed);
}
public List<ReaderEventRestPojo> getReaders() {
return readers;
public List<ReaderEventRestPojo> getReaderEvents() {
return readerEvents;
}
public void setReaders(List<ReaderEventRestPojo> readers) {
this.readers = readers;
public void setReaderEvents(List<ReaderEventRestPojo> readerEvents) {
this.readerEvents = readerEvents;
}
}
......@@ -2,12 +2,11 @@ package fi.codecrew.moya.rest.pojo;
import java.util.List;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ReaderRestRoot {
@XmlElementWrapper(name = "readers")
//@XmlElementWrapper(name = "readers")
private List<ReaderRestPojo> readers;
public ReaderRestRoot() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!