For those who do not have the fix yet, here is a work around I use instead of "stats.getCollectionRoleNames()": ((MetamodelImplementor) sessionFactory.getMetamodel()).collectionPersisters().keySet()