/** * Copyright (C) 2010 Talend Inc. - www.talend.com */ package talend.camel.examples.jaxrsjmshttp.common; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; @XmlRootElement(namespace = "http://books", name = "Book") @XmlType public class Book { private String name; private long id; public Book() { } public Book(String name) { this.name = name; } public Book(String name, long id) { this.name = name; this.id = id; } public void setName(String n) { name = n; } @Override public String toString() { return "Book [id=" + id + ", name=" + name + "]"; } public String getName() { return name; } public void setId(long i) { id = i; } public long getId() { return id; } }