Easy question, I think.

I am trying something like this:

Product p = new Product();
p.setName("blah");

ProductLineItem item = new ProductLineItem();
item.setName("blah line item");


// Add a line item to the product
p.addLineItem(item);


Session.save(p);


.and it is inserting the Product, and trying to update the LineItem.
Can it insert the product, then insert the LineItem or is this not
supported?

Thanks,

Matt Dowell
Notiva Corp.


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to