package com.example.rest; import de.itout.innova.ssp.entities.ssp.entities.*; import java.util.*; import javax.ejb.*; import javax.inject.*; import javax.persistence.*; import javax.ws.rs.*; import javax.ws.rs.core.*; /** * * @author swendelmann */ @Path("/schnittstellen") @Stateless public class SchnittstellenResource { @Inject private EntityManager em; @Path("/all") @GET @Produces(MediaType.APPLICATION_JSON) public List getAll() { return em.createNamedQuery("Schnittstellen.findAll").getResultList(); } }