persistence@glassfish.java.net

My deep relationship problem for JPA

From: Tony Huang <Tony.Huang_at_activenetwork.com>
Date: Thu, 21 May 2009 06:34:26 -0700

Hi, All
I created 3 classes: Class A has a collection of class B; B has a collection of class C
When saving the instance of A to DB table, I want also save the children and grandchildren of B and C.
But I failed to do this.

My question is JPA support the 3 layer hierarchy?
What should I do to solve my problem?

Thanks

Tony Huang
Developer,Foundation
The Active Network,LTD (Xi'an)

Tony.Huang_at_ActiveNetwork.com<mailto:Tony.Huang_at_ActiveNetwork.com>
Mobile 86-13389240842
MSN hdp214_at_163.com<mailto:hdp214_at_163.com>
Skype tony.huang214
QinFengGeD201 68 Keji No. 2 Rd.
Xian, China 710075
www.ActiveNetwork.com<http://www.ActiveNetwork.com>