> 8: fetchPlan.addField(AbstractCustomer.class, "name"); > 14: System.out.println(customer1.getName()); > > And if I comment the line 8 : fetchPlan.addField(AbstractCustomer.class, > "name"); > The value of the line 14 is null > Can you help me ?
I am not sure whether I understood the problem correctly to be of any help. If you comment out Line 8, then "name" is not in the fetch plan. Because few lines before you cleared the fetch plan even from those fields that are included by default (such as "name" because it is of type String). So when Customer is fetched, its "name" is not fetched. You print the name and see a null. Looks normal behavior to me -- but I may be missing something. ----- Pinaki -- View this message in context: http://openjpa.208410.n2.nabble.com/Fetch-Plan-ands-collections-mapped-tp5321552p5342383.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
