Changeset 5046
- Timestamp:
- Aug 12, 2009, 11:12:48 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/ItemContext.java
r4988 r5046 1039 1039 { 1040 1040 String toJoin = sortProperty.substring(0, dotIndex); 1041 if (alias != null) toJoin = "$" + alias + "." + toJoin; 1041 1042 leftJoins.add(toJoin); 1042 1043 sortedProperties.add(toJoin); … … 1117 1118 { 1118 1119 boolean fetch = selectOrderBy && sortedProperties.contains(property); 1120 String alias = null; 1119 1121 if (property.startsWith("@") || property.startsWith("£") || property.startsWith("&")) 1120 1122 { 1121 1123 property = property.substring(1); 1122 1124 } 1125 if (property.startsWith("$")) 1126 { 1127 int dotIndex = property.indexOf('.'); 1128 alias = property.substring(1, dotIndex); 1129 property = property.substring(dotIndex+1); 1130 } 1123 1131 i++; 1124 query.join(Hql.leftJoin( null, property, "alj"+i, null, fetch));1132 query.join(Hql.leftJoin(alias, property, "alj"+i, null, fetch)); 1125 1133 } 1126 1134 }
Note: See TracChangeset
for help on using the changeset viewer.