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
|