I have the following query for a one to many relationship.
return create.select(Parent.asterisk(), Child.asterisk())
.from(PARENT)
.leftJoin(CHILD)
.onKey()
.where(myCondition)
.fetchGroups(ParentRecord.class, ChildRecord.class);
When there are no child records I do not get an empty list. There is always one child record with all its fields set to null.
[Child(id=null, name=null)]
What is the best way to prevent these null records from being returned?