Fix wrong query.

This commit is contained in:
Paulo Gustavo Veiga 2020-11-08 15:42:51 -08:00
parent 2a485b71db
commit 64411c6232
2 changed files with 2 additions and 6 deletions

View File

@ -146,10 +146,6 @@ public class MindmapManagerImpl
hibernateCriteria.add(junction);
}
// if (maxResult>0)
// {
// hibernateCriteria.setMaxResults(maxResult);
// }
return hibernateCriteria.list();
}
@ -160,7 +156,7 @@ public class MindmapManagerImpl
@Override
public List<Collaboration> findCollaboration(final long collaboratorId) {
Query query = currentSession().createQuery("from com.wisemapping.model.Collaboration collaboration where colaboratorId=:colaboratorId");
Query query = currentSession().createQuery("from com.wisemapping.model.Collaboration collaboration where colaborator_id=:colaboratorId");
query.setParameter("colaboratorId", collaboratorId);
return query.list();
}

View File

@ -4,7 +4,7 @@ import com.wisemapping.filter.SupportedUserAgent;
import org.testng.Assert;
import org.testng.annotations.Test;
@Test
@Test(enabled=false)
public class UserAgentTest {