* to the regular query list as these queries may need to be initialized
* per EM.
*/
protected void addJPAQuery(JPAQuery query, AbstractSession session) {
if (query.isJPQLQuery()) {
List<ClassDescriptor> descriptors = new JPQLQueryHelper().getClassDescriptors(query.getJPQLString(), session);
for (ClassDescriptor descriptor : descriptors) {
// If we find one descriptor that has table per tenant multitenancy,
// then add it to the multitenant query list. These queries may
// need to be initialized per EM rather than straight up at the