I have the below select statement
"SELECT new SystemUser(u.id, u.username, u.fullname, u.status, u.group.id, u.group.name, u.organization.id, u.organization.name) FROM SystemUser"
Pojo
public class SystemUser implements Serializable {
private long id;
private String username;
private String password;
private String fullname;
private SimpleStatus status;
private UserGroup group;
private Organization organization;}
and I want to select all data from SystemUser table, but rows where "SystemUser" has no "group" or "organization" are not selected.
How can I select all data using HQL?