Hello, I'm trying to finish the HW related to JPA Query, but I have the following doubt:
When I create dynamically the table using JPAUtil.setup ("Create Table Order (...)") and then modifying the Product table adding a column for Order_Id (just for testing and research purposes), after that I insert rows for orders and next I relate products with an order, I made the query for retrieving the orders that match the criteria for "Sun Microsystems" and Inventory Costo > 500, I got several orders but the product collection is empty. I tried with fetch = FetchOption.EAGER and nothing happens. This behavior does not happen when the table and the data have been previously created and inserted. If I run the same query, now, the orders and their product collection has data. Is this behavior common when tables are dynamically created instead previously created? Regards. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---