Ok, thanks. I'll make the appropriate changes.



On Fri, Jul 26, 2013 at 1:28 PM, Ryan Carlson <notifications@github.com>wrote:

> In src/main/java/org/cru/crs/api/AnswerResource.java:
>
> > +import javax.ws.rs.PathParam;
> > +import javax.ws.rs.Produces;
> > +import javax.ws.rs.core.MediaType;
> > +import javax.ws.rs.core.Response;
> > +import javax.ws.rs.core.Response.Status;
> > +import java.io.IOException;
> > +import java.util.UUID;
> > +
> > +/**
> > + * User: lee.braddock
> > + */
> > +@Stateless
> > +@Path("/answers/{answerId}")
> > +public class AnswerResource {
> > +
> > +    @Inject EntityManager em;
>
> This should inject the AnswerService, which would in turn inject the
> EntityManager using @Inject <https://github.com/Inject> in the
> constructor. See the ConferenceResource for an example. Props to
> @mattdrees <https://github.com/mattdrees> for showing the way on that one.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/CruGlobal/conf-registration-api/pull/7/files#r5427886>
> .
>