From 269a3ffb92fa6914f9e5859a97ea025986978252 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Thu, 1 Jan 2009 17:10:34 +0000 Subject: [PATCH] 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. --- src/java/com/samskivert/depot/impl/DepotTypes.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/samskivert/depot/impl/DepotTypes.java b/src/java/com/samskivert/depot/impl/DepotTypes.java index 6c23956..c650acc 100644 --- a/src/java/com/samskivert/depot/impl/DepotTypes.java +++ b/src/java/com/samskivert/depot/impl/DepotTypes.java @@ -3,7 +3,7 @@ // // Depot library - a Java relational persistence library // Copyright (C) 2006-2008 Michael Bayne and Pär Winzell -// +// // This library is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 2.1 of the License, or @@ -61,7 +61,7 @@ public class DepotTypes PersistenceContext ctx, Collection clauses) throws DatabaseException { - Set> classSet = Sets.newHashSet(); + Set> classSet = Sets.newLinkedHashSet(); for (QueryClause clause : clauses) { if (clause != null) { clause.addClasses(classSet);