mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Ticket #263: Corrected Example parameters.
This commit is contained in:
@@ -222,9 +222,9 @@ public class ConnectionGroupService {
|
|||||||
Criteria criteria = example.createCriteria();
|
Criteria criteria = example.createCriteria();
|
||||||
|
|
||||||
if(parentID != null)
|
if(parentID != null)
|
||||||
criteria.andConnection_group_idEqualTo(parentID);
|
criteria.andParent_idEqualTo(parentID);
|
||||||
else
|
else
|
||||||
criteria.andConnection_group_idIsNull();
|
criteria.andParent_idIsNull();
|
||||||
|
|
||||||
// Query the connections
|
// Query the connections
|
||||||
List<ConnectionGroup> connectionGroups = connectionGroupDAO.selectByExample(example);
|
List<ConnectionGroup> connectionGroups = connectionGroupDAO.selectByExample(example);
|
||||||
|
@@ -210,9 +210,9 @@ public class ConnectionService {
|
|||||||
Criteria criteria = example.createCriteria();
|
Criteria criteria = example.createCriteria();
|
||||||
|
|
||||||
if(parentID != null)
|
if(parentID != null)
|
||||||
criteria.andConnection_idEqualTo(parentID);
|
criteria.andParent_idEqualTo(parentID);
|
||||||
else
|
else
|
||||||
criteria.andConnection_idIsNull();
|
criteria.andParent_idIsNull();
|
||||||
|
|
||||||
// Query the connections
|
// Query the connections
|
||||||
List<Connection> connections = connectionDAO.selectByExample(example);
|
List<Connection> connections = connectionDAO.selectByExample(example);
|
||||||
|
Reference in New Issue
Block a user