this.setQueryValues(bean, query, integerCounter, this.simpleKeys);
// Keys from many to one relations for where statement
this.setQueryValues(bean, query, integerCounter, this.manyToOneRelationKeys.values());
return query.executeQuery();
} finally {
BooleanQuery.autoCloseQuery(query);
}