Open nuttapong opened 2 years ago
ตอนนี้ผมแก้จนสามารถรันได้ละครับ แต่มีปัญหาใหม่ คือที่ Entity ลูก(ProductAvailable) ผมใส่ FetchType.LAZY แต่พอรันแล้ว มันยังดึงข้อมูลของ Entity แม่(Product) มาด้วยน่ะครับ
ก็โยนออกไป response มันก็ execute ดังนั้นก็ return ออกไปถูกแล้วครับ เพราะว่ามันจะทำแบบอัตโนมัติ
เราจะไม่โยน Entity ออกไปยัง response นะครับ ต้องทำการ mapping จาก Entity ไป Response เพื่อให้ return ไปเท่าที่ต้องการครับ
ขอบคุณมากครับผม
พอดีติด error นี้อยู่พักใหญ่ละครับผม อยากจะขอคำแนะนำการแก้ไขหน่อยครับ ขอบคุณครับ --- error ---
--- entity ---
--- initial data in PostConstruct ---