7
सेट करने से क्या मिलता है मुझे इस रचना का उपयोग करने वाले उदाहरण मिलते हैं हालांकि मुझे यकीन नहीं है कि मुझे इससे क्या मिल सकता है?मुझे यह TransactionAttributeType.NOT_SUPPORTED
क्या इसका मतलब यह है कि एक स्टेटलेस ईजेबी में सभी चुनिंदा वक्तव्यों का पालन करना चाहिए?
@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();
}
मुझे इससे क्या मिलता है?
धन्यवाद।
EntityManager लेनदेन के बिना क्वेरी निष्पादित करता है?/उलझन में / –