mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-22 19:33:48 +01:00
Fix wrong query.
This commit is contained in:
parent
2a485b71db
commit
64411c6232
@ -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();
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user