ISPN-4635 Query DSL should check against mixing objects created by diffe...

...rent factories or builders

jira: https://issues.jboss.org/browse/ISPN-4635