-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: left join fetch
PostPosted: Mon Sep 05, 2011 9:54 am 
Newbie

Joined: Sun Sep 04, 2011 3:54 am
Posts: 3
I have a business domain class called Call and it has a List of Objects called Action.
Onnce the Action class is populated with values I set the Call object in its set method and add the Action Object into the List of Action objects in the Call class.

So to do that I use the following ql,

String hql="from Call as call left join fetch call.actions where call.callId = ?";

even after using 'left join fetch' I get NullPointerException when I try to do the following,
private List<Action> actions;
public void addAction(Action action)
{
this.actions.add(action);
}
Can any one explain why please?

Thanks and Regards,
Anish


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.