mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Fix wrong query.
This commit is contained in:
parent
2a485b71db
commit
64411c6232
@ -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