I happen to find examples that use this construct, although I'm not sure what I can get from this?
Does this mean that all selected stateless statements in EJ should follow this?
@Stateless public class EmployeeFacade { @PersistenceContext(unitName="EmployeeService") EntityManager em; @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) public List<Department> findAllEmployees() { return em.createQuery("SELECT e FROM Employee e", Employee.class) .getResultList(); }
What will I get from this?
Thanks.
Mark estrada
source share