Added missing @XmlRootElement annotations.
FEA: ItEr75S12AllowExportOneEntity
This commit is contained in:
parent
eb1f7a35a5
commit
636e4b2bf4
10 changed files with 20 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
|||
package org.navalplanner.ws.calendarexceptiontypes.api;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.navalplanner.business.calendars.entities.CalendarExceptionType;
|
||||
import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
||||
|
|
@ -31,6 +32,7 @@ import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
|||
*
|
||||
* @author Manuel Rego Casasnovas <mrego@igalia.com>
|
||||
*/
|
||||
@XmlRootElement(name = "calendar-exception-type")
|
||||
public class CalendarExceptionTypeDTO extends IntegrationEntityDTO {
|
||||
|
||||
public final static String ENTITY_TYPE = "calendar-exception-type";
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.datatype.XMLGregorianCalendar;
|
||||
|
||||
import org.navalplanner.business.orders.entities.Order;
|
||||
|
|
@ -34,7 +35,7 @@ import org.navalplanner.business.orders.entities.Order;
|
|||
*
|
||||
* @author Manuel Rego Casasnovas <mrego@igalia.com>
|
||||
*/
|
||||
|
||||
@XmlRootElement(name = "order")
|
||||
public class OrderDTO extends OrderLineGroupDTO {
|
||||
|
||||
public final static String ENTITY_TYPE = "order";
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import java.util.Set;
|
|||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.navalplanner.business.costcategories.entities.CostCategory;
|
||||
import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
||||
|
|
@ -35,6 +36,7 @@ import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
|||
* DTO for {@link CostCategory} entity.
|
||||
* @author Susana Montes Pedreira <smontes@wirelessgalicia.com>
|
||||
*/
|
||||
@XmlRootElement(name = "cost-category")
|
||||
public class CostCategoryDTO extends IntegrationEntityDTO {
|
||||
|
||||
public final static String ENTITY_TYPE = "cost-category";
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import java.util.List;
|
|||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.navalplanner.business.labels.entities.LabelType;
|
||||
import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
||||
|
|
@ -36,6 +37,7 @@ import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
|||
*
|
||||
* @author Manuel Rego Casasnovas <mrego@igalia.com>
|
||||
*/
|
||||
@XmlRootElement(name = "label-type")
|
||||
public class LabelTypeDTO extends IntegrationEntityDTO {
|
||||
|
||||
public final static String ENTITY_TYPE = "label-type";
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import java.util.List;
|
|||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
||||
|
||||
|
|
@ -34,6 +35,7 @@ import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
|||
* DTO for <code>MaterialCategory</code> entity.
|
||||
* @author Susana Montes Pedreira <smontes@wirelessgalicia.com>
|
||||
*/
|
||||
@XmlRootElement(name = "material-category")
|
||||
public class MaterialCategoryDTO extends IntegrationEntityDTO {
|
||||
|
||||
public final static String ENTITY_TYPE = "material-category";
|
||||
|
|
|
|||
|
|
@ -22,12 +22,14 @@
|
|||
package org.navalplanner.ws.resources.api;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
* DTO for <code>Machine</code> entity.
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*/
|
||||
@XmlRootElement(name = "machine")
|
||||
public class MachineDTO extends ResourceDTO {
|
||||
|
||||
public final static String ENTITY_TYPE = "machine";
|
||||
|
|
|
|||
|
|
@ -22,12 +22,14 @@
|
|||
package org.navalplanner.ws.resources.api;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
* DTO for <code>Worker</code> entity.
|
||||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*/
|
||||
@XmlRootElement(name = "worker")
|
||||
public class WorkerDTO extends ResourceDTO {
|
||||
|
||||
public final static String ENTITY_TYPE = "worker";
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import java.util.List;
|
|||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
||||
import org.navalplanner.ws.common.api.ResourceEnumDTO;
|
||||
|
|
@ -36,6 +37,7 @@ import org.navalplanner.ws.common.api.ResourceEnumDTO;
|
|||
*
|
||||
* @author Fernando Bellas Permuy <fbellas@udc.es>
|
||||
*/
|
||||
@XmlRootElement(name = "criterion-type")
|
||||
public class CriterionTypeDTO extends IntegrationEntityDTO {
|
||||
|
||||
public final static String ENTITY_TYPE = "criterion-type";
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ package org.navalplanner.ws.typeofworkhours.api;
|
|||
import java.math.BigDecimal;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.navalplanner.business.costcategories.entities.TypeOfWorkHours;
|
||||
import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
||||
|
|
@ -32,6 +33,7 @@ import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
|||
* DTO for {@link TypeOfWorkHours} entity.
|
||||
* @author Susana Montes Pedreira <smontes@wirelessgalicia.com>
|
||||
*/
|
||||
@XmlRootElement(name = "type-work-hours")
|
||||
public class TypeOfWorkHoursDTO extends IntegrationEntityDTO {
|
||||
|
||||
public final static String ENTITY_TYPE = "type-work-hours";
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
package org.navalplanner.ws.unittypes.api;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
||||
|
||||
|
|
@ -29,6 +30,7 @@ import org.navalplanner.ws.common.api.IntegrationEntityDTO;
|
|||
* DTO for <code>UnitType</code> entity.
|
||||
* @author Susana Montes Pedreira <smontes@wirelessgalicia.com>
|
||||
*/
|
||||
@XmlRootElement(name = "unit-type")
|
||||
public class UnitTypeDTO extends IntegrationEntityDTO {
|
||||
|
||||
public final static String ENTITY_TYPE = "unit type";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue