OK. understood. Thanks

2013/11/25 Thiago Veronezi <thi...@veronezi.org>

> I guess so, but I'm not sure how the managed entities would behave.
> imho, it's better to create DTOs to hold only the information you want to
> pass through the wire.
>
> []s,
> Thiago.
>
>
>
> On Mon, Nov 25, 2013 at 1:38 PM, José Luis Cetina <maxtorz...@gmail.com
> >wrote:
>
> > Noup, i did it an works.
> >
> >  What about if my object is an entity object? can i mix jpa annotations
> > like @entity @column @joincolumn @onetone etc.... whit this annotations?
> >
> >
> > 2013/11/25 Thiago Veronezi <thi...@veronezi.org>
> >
> > > Did you annotate the User class?
> > >
> > >
> > >
> >
> https://github.com/tveronezi/photodb/blob/master/src/main/java/photodb/data/dto/UserInfo.java
> > >
> > > []s,
> > > Thiago.
> > >
> > >
> > >
> > > On Mon, Nov 25, 2013 at 1:26 PM, José Luis Cetina <
> maxtorz...@gmail.com
> > > >wrote:
> > >
> > > > Hi, im doing my first restful, im using tomee 1.6.0 jax-rs.
> > > >
> > > > I get this message when in my webpage:  No message body writer has
> been
> > > > found for response class User.
> > > >
> > > > @GET
> > > >     @Path("/user")
> > > >     @Produces({"application/xml", "application/json"})
> > > >     public User getUser(){
> > > >         User usr = new User();
> > > >         usr.setName("xx");
> > > >         return usr;
> > > >     }
> > > >
> > > >
> > > >
> > > > I never code any restful before.
> > > >
> > > >
> > > > What im missing?
> > > >
> > >
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
> >
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Reply via email to