mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-15 11:07:57 +01:00
Fix wrong query.
This commit is contained in:
parent
2576ad325c
commit
6b175d9885
@ -146,10 +146,6 @@ public class MindmapManagerImpl
|
|||||||
|
|
||||||
hibernateCriteria.add(junction);
|
hibernateCriteria.add(junction);
|
||||||
}
|
}
|
||||||
// if (maxResult>0)
|
|
||||||
// {
|
|
||||||
// hibernateCriteria.setMaxResults(maxResult);
|
|
||||||
// }
|
|
||||||
return hibernateCriteria.list();
|
return hibernateCriteria.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,7 +156,7 @@ public class MindmapManagerImpl
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Collaboration> findCollaboration(final long collaboratorId) {
|
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);
|
query.setParameter("colaboratorId", collaboratorId);
|
||||||
return query.list();
|
return query.list();
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import com.wisemapping.filter.SupportedUserAgent;
|
|||||||
import org.testng.Assert;
|
import org.testng.Assert;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
@Test
|
@Test(enabled=false)
|
||||||
public class UserAgentTest {
|
public class UserAgentTest {
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user