Author: epbernard
Date: 2008-05-31 09:34:48 -0400 (Sat, 31 May 2008)
New Revision: 14722
Modified:
search/trunk/src/java/org/hibernate/search/engine/ProjectionLoader.java
Log:
HSEARCH-204 the shortcut test avoiding session calls was broken
Modified: search/trunk/src/java/org/hibernate/search/engine/ProjectionLoader.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/engine/ProjectionLoader.java 2008-05-30
22:48:49 UTC (rev 14721)
+++ search/trunk/src/java/org/hibernate/search/engine/ProjectionLoader.java 2008-05-31
13:34:48 UTC (rev 14722)
@@ -46,7 +46,7 @@
private void initThisProjectionFlag(EntityInfo entityInfo) {
if ( projectThis == null ) {
- projectThis = entityInfo.indexesOfThis != null;
+ projectThis = entityInfo.indexesOfThis.size() != 0;
if ( projectThis ) {
//TODO use QueryLoader when possible
objectLoader = new ObjectLoader();
Show replies by date