0
컨텍스트가 유지되지 않습니다 : : 넷빈즈 8.0.1, JSF 2.2의 EntityManager : 최소 및 최대 쿼리
최소 및 최대 쿼리에 의해 유지되지 않습니다 것 같다, JDK 1.7는 EclipseLink 2.5.2을 5.0 Primefaces 여기 내 JPQL 성명 :
Query query = em.createQuery("SELECT po.customerId.customerId, MAX(po.shippingCost),
MIN(po.shippingCost), COUNT(po.orderNum) countligne,
COUNT(DISTINCT po.productId.productId)\n"
+"FROM PurchaseOrder po WHERE po.customerId.customerId = :Id
GROUP BY` po.customerId.customerId");
는 그리고이 있습니다 EclipseLink가 로깅 SQL :
SELECT t0.CUSTOMER_ID, COUNT(t1.ORDER_NUM), COUNT(DISTINCT(t2.PRODUCT_ID))
FROM CUSTOMER t0, PRODUCT t2, PURCHASE_ORDER t1 WHERE ((t1.CUSTOMER_ID = ?)
AND ((t0.CUSTOMER_ID = t1.CUSTOMER_ID) AND (t2.PRODUCT_ID = t1.PRODUCT_ID)))
GROUP BY t0.CUSTOMER_ID
무슨 일이야?
매우 흥미 롭습니다. 버그와 비슷합니다. –