Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Full FetchGroup is NULL
Full FetchGroup is NULL [message #1070658] Thu, 18 July 2013 12:06 Go to next message
Hannes Kühtreiber is currently offline Hannes KühtreiberFriend
Messages: 21
Registered: June 2013
Junior Member
Hello Everybody,

more fetchGroup woes here:
creating a dynamic fetch group works nicely
		FetchGroup fetchLit = new FetchGroup(); 
		fetchLit.addAttribute("name");
		System.out.println("## fetchlit size="+fetchLit.getAttributeNames().size());
		query.setHint(QueryHints.FETCH_GROUP, fetchLit);

and delivers the expected result.
## fetchlit size=1
[EL Fine]: sql: Connection(3823508)--SELECT refIdReference, refReferenceName FROM tReferences WHERE ...


a full fetchGroup however is impossible to create:
		FetchGroupManager fgm = new FetchGroupManager();
		FetchGroup full =fgm.createFullFetchGroup();
		System.out.println("## full size="+full.getAttributeNames().size());
		query.setHint(QueryHints.FETCH_GROUP, full);


resulting in following error:
Exception in thread "main" java.lang.NullPointerException
	at org.eclipse.persistence.descriptors.FetchGroupManager.createFullFetchGroup(FetchGroupManager.java:326)
	at test_hannes.test_different_queries.test_criteria_relation(test_different_queries.java:130)
	at test_hannes.test_different_queries.main(test_different_queries.java:43)


what am I doing wrong?
Hannes

[Updated on: Thu, 25 July 2013 05:49]

Report message to a moderator

Re: Full FetchGroup is NULL [message #1145899 is a reply to message #1070658] Sat, 19 October 2013 21:38 Go to previous message
Kevin Doran is currently offline Kevin DoranFriend
Messages: 1
Registered: October 2013
Junior Member
I am also having this issue. Did you have any success in solving the problem?
Previous Topic:binding attributes from inherited interfaces
Next Topic:Merge behavior
Goto Forum:
  


Current Time: Tue Apr 16 16:10:15 GMT 2024

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

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

Back to the top