openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abe White <awh...@bea.com>
Subject Re: question on OpenJPA FetchGroups
Date Thu, 21 Sep 2006 18:47:20 GMT
> @Entity
> @FetchGroup (name="detail", attributes={
> @FetchAttribute(name="emps" ,recursionDepth=2})
> public class DeptBean{
>
> @OneToMany
> Collection<EmpBean> emps
> ...
>
> @Entity
> @FetchGroup   (name="detail", attributes = {
> @FetchAttribute (name="tasks", recursionDepth=2)})
> public class EmpBean {
>    ...
> @OneToMany
> Collection<ProjectBean> projects;

Did you notice that the field is called "projects" but your fetch  
attribute is "tasks"?

> I then add "details" to the FetchPlan for the query

I assume you mean "detail" (singular)?

Other than that, things should work.  If they don't work with those  
corrections, make a test case and we can try to figure out why.
>>Register now for BEA World 2006 --- See http://www.bea.com/beaworld<<
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Mime
View raw message