From: Rafael V. <re...@gm...> - 2011-09-23 20:26:20
|
Example: *Entity* @XmlRootElement public abstract class ObjectOne { @Id private Long id; @OneToMany() // hidden some attributes @JoinColumn // hidden some attributes private List<ObjectTwo> list; *Service* @GET @Path("/path") @Produces( { MediaType.APPLICATION_XML, MediaType.TEXT_HTML, MediaType.TEXT_PLAIN }) public Response list(@Context HttpServletRequest request, @PathParam("name") String name) { final List<ObjectOne> object = //implementation; final GenericEntity<List<ObjectOne>> obj = new GenericEntity<List<ObjectOne>>( object) { }; return Response.ok(obj).build(); } On Fri, Sep 23, 2011 at 5:01 PM, Solomon Duskis <sd...@gm...> wrote: > Can you provide a sample project that would show the problem? > > -Solomon > > On Fri, Sep 23, 2011 at 3:36 PM, Rafael Viana <re...@gm...> wrote: > >> Hi guys, >> >> I've a problem with RESTEasy and XML generation. I've a class annotated >> with @XmlRootElement to be >> generated to XML by RESTEasy. In my development environment, the XML is >> generated correctly. >> >> But, in production, the XML is missing some values. These values are only >> lists attributes from that class. >> >> Someone could help me? >> >> >> Thanks in advance. >> -- >> Rafael Viana >> >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2dcopy2 >> _______________________________________________ >> Resteasy-developers mailing list >> Res...@li... >> https://lists.sourceforge.net/lists/listinfo/resteasy-developers >> >> > -- Rafael Viana |