Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [eclipselink-users] Fetch Groups

Hi again,

I configured a Eclipse Builder via a batch file as described at
http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#How_to_C
onfigure_Static_Weaving_for_JPA_Entities.

Does the StaticWeave class also supports incremental weaving?

Fetch Groups are working now. I'll begin to test nested fetch groups. Is
there any annotation for nested fetch groups?

--
Kind reards,
Mathis

> -----Original Message-----
> From: eclipselink-users-bounces@xxxxxxxxxxx [mailto:eclipselink-users-
> bounces@xxxxxxxxxxx] On Behalf Of Mathias Walter
> Sent: Thursday, August 20, 2009 8:37 PM
> To: 'EclipseLink User Discussions'
> Subject: RE: [eclipselink-users] Fetch Groups
> 
> Hi Douglas,
> 
> thanks for the hints.
> 
> The reason why it doesn't work in my configuration is that neither
> dynamic
> nor static weaving is enabled.
> I didn't disable weaving. Thus dynamic weaving should be enabled by
> default.
> But dynamic weaving is not available, if the application is deployed to
> Tomcat. :(
> 
> Now I try to enable static weaving. Is there any way to include it into
> the
> usual build process of Eclipse (e. g. as a Builder)?
> Or do I need to swith to Ant? And how about debugging and incremental
> deploying with Eclipse, if Ant is used?
> 
> --
> Kind regards,
> Mathias
> 
> > -----Original Message-----
> > From: eclipselink-users-bounces@xxxxxxxxxxx [mailto:eclipselink-
> users-
> > bounces@xxxxxxxxxxx] On Behalf Of Douglas Clarke
> > Sent: Thursday, August 20, 2009 8:11 AM
> > To: EclipseLink User Discussions
> > Subject: RE: [eclipselink-users] Fetch Groups
> >
> > Mathias,
> >
> > The FetchGroupTracker interface is used internally to indicate that a
> > domain class is setup for use of fetch-groups. This generally added
> to
> > your domain classes through dynamic or static weaving. This and the
> > corresponding FetchGroupManager implementations are automatically
> > created at runtime assuming your domain classes are woven and you
> have
> > either a lazy basic mapping or manually configure a default fetch-
> > group.
> >
> > NOTE: I received an email from another user of the nested-fetch-group
> > example that they had some test failures in the project when using
> > static weaving that are not seen with dynamic weaving. The root cause
> > of the difference has yet to be determined.
> >
> > If you check out the complete source to the example you can try the
> > provided test cases.
> >
> >
> http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/branches/1.1.
> > 0/trunk/examples/org.eclipse.persistence.example.jpa.nested-
> fetchgroup/
> >
> > Doug
> >
> > -----Original Message-----
> > From: Mathias Walter [mailto:mathias.walter@xxxxxxx]
> > Sent: Wednesday, August 19, 2009 8:01 PM
> > To: EclipseLink User Discussions
> > Subject: [eclipselink-users] Fetch Groups
> >
> >
> > Hi,
> >
> > is there any example how to implement FetchGroupTracker?
> >
> > The EclipseLink Wiki explains how to set the fetch groups, but not
> how
> > to
> > implement FetchGroupTracker.
> > Unfortunately, FetchGroupTracker must be implemented for all entities
> > participating in a fetch group. And also a DescriptorCustomizer seems
> > to be
> > necessary for each of these entities which instantiates a new
> > FetchGroupManager. That's a bit ugly in my opinion but could be
> easily
> > implemented and copy & paste in persistence.xml. Or is there an
> easier
> > way?
> >
> > If the FetchGroupManager is not instantiated a QueryException with
> > error
> > 6114 is thrown:
> >
> > "You must define a fetch group manager at descriptor <entity> in
> order
> > to
> > set a fetch group on the query <query>."
> >
> > Is there a full example how to use fetch groups?
> >
> > I also tried EclipseLink 2.0, but got the same errors. My main goal
> is
> > to
> > use Nested Fetch Groups as explained at
> > http://wiki.eclipse.org/EclipseLink/Development/JPA/NestedFetchGroups
> > and
> > bug 244124.
> >
> > --
> > Kind regards,
> > Mathias
> >
> > _______________________________________________
> > eclipselink-users mailing list
> > eclipselink-users@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> > _______________________________________________
> > eclipselink-users mailing list
> > eclipselink-users@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users



Back to the top