The problem is, that GROUP_CONCAT is an unknown function to Hibernate, whereas CONCAT is known. You can register the return type for that function in your dialect which will effectively avoid the NPE.