1 package com.atlassian.plugins.rest.sample.entities; 2 3 import javax.xml.bind.annotation.XmlAccessType; 4 import javax.xml.bind.annotation.XmlAccessorType; 5 import javax.xml.bind.annotation.XmlRootElement; 6 7 @XmlAccessorType(XmlAccessType.FIELD) 8 @XmlRootElement 9 public class Orange 10 { 11 String name; 12 13 public Orange() 14 { 15 } 16 17 public Orange(final String name) 18 { 19 this.name = name; 20 } 21 22 public String getName() 23 { 24 return name; 25 } 26 }