users@glassfish.java.net

Re: RE: Composite PK for Child Entity

From: <glassfish_at_javadesktop.org>
Date: Fri, 10 Sep 2010 14:55:06 PDT

Thanks Martin

I am using JPA and Hibernate. By default in JPA the one-to-many relationships are lazy. Also my problem is not on the JPA side - it is more on the ui side.

The datatable to which I am adding new order lines do not reflect the lines (even if the underlying List<OrderLine> has the lines I added. The only thing missing is the composite PK (order_id, product_code) because I have not yet generated the order_id for the header.
[Message sent by forum member 'smallya']

http://forums.java.net/jive/thread.jspa?messageID=482388