private static boolean isCompoundExpression(Expression<?> expr) {
        return expr instanceof FactoryExpression || expr instanceof GroupExpression;
    }
{@code QBean} is a JavaBean populating projection type

<p>Example</p>

<pre>
{@code
QEmployee employee = QEmployee.employee;
List<EmployeeInfo> result = query.from(employee)
     .where(employee.valid.eq(true))
     .select(Projections.bean(EmployeeInfo.class, employee.firstName, employee.lastName))
     .fetch();
}
</pre>

@author tiwe

@param <T> bean type
querydsl-core/src/main/java/com/querydsl/core/types/QBean.java