Let's make this an insertion-ordered set so that all logically identical queries get assigned table abbreviations in the same order. This is mostly cosmetic, but has no significant cost.

This commit is contained in:
Par Winzell
2009-01-01 17:10:34 +00:00
parent 68aac7fd11
commit 269a3ffb92
@@ -61,7 +61,7 @@ public class DepotTypes
PersistenceContext ctx, Collection<? extends QueryClause> clauses)
throws DatabaseException
{
Set<Class<? extends PersistentRecord>> classSet = Sets.newHashSet();
Set<Class<? extends PersistentRecord>> classSet = Sets.newLinkedHashSet();
for (QueryClause clause : clauses) {
if (clause != null) {
clause.addClasses(classSet);