Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Is here the way to regulate result of query to child tables of an entity.
Is here the way to regulate result of query to child tables of an entity. [message #1011860] Wed, 20 February 2013 06:43 Go to next message
Eclipse UserFriend
Greetings!

Is here way to regulate the fact is query returning data from the child tables of actual entity?

For example, if here one entity relates to another with one to many relationship, could developer to query database for first entity instances only without instances of second one?

Thank you,

[Updated on: Fri, 01 March 2013 07:55] by Moderator

Re: Is here the way to regulate result of query to child tables of an entity. [message #1014845 is a reply to message #1011860] Tue, 26 February 2013 10:17 Go to previous messageGo to next message
Eclipse UserFriend
If you make the relationship LAZY, it will not be fetch until it is accessed.

EclipseLink also supports fetch groups to load partial objects.

In JPQL you can also select specific fields instead of the entire object.
Re: Is here the way to regulate result of query to child tables of an entity. [message #1015628 is a reply to message #1014845] Fri, 01 March 2013 07:53 Go to previous message
Eclipse UserFriend
Thank you Mr. Sutherland
Previous Topic:Group by statement is not rendered with criteria api
Next Topic:Strange weaving message at startup
Goto Forum:
  


Current Time: Fri Nov 07 03:46:24 EST 2025

Powered by FUDForum. Page generated in 0.03953 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top