mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
* Changing sql ID to correct name
This commit is contained in:
parent
eec444201d
commit
0f401090c0
@ -96,7 +96,7 @@ public class FeatureDAOImpl implements MobileFeatureDAO {
|
||||
ResultSet rs = null;
|
||||
try {
|
||||
Connection conn = MobileDeviceManagementDAOFactory.getConnection();
|
||||
String sql = "SELECT ID, CODE, NAME, DESCRIPTION FROM IOS_FEATURE WHERE CODE = ?";
|
||||
String sql = "SELECT FEATURE_ID, CODE, NAME, DESCRIPTION FROM IOS_FEATURE WHERE CODE = ?";
|
||||
stmt = conn.prepareStatement(sql);
|
||||
stmt.setString(1, mblFeatureCode);
|
||||
rs = stmt.executeQuery();
|
||||
@ -130,16 +130,17 @@ public class FeatureDAOImpl implements MobileFeatureDAO {
|
||||
List<MobileFeature> features = new ArrayList<MobileFeature>();
|
||||
try {
|
||||
Connection conn = MobileDeviceManagementDAOFactory.getConnection();
|
||||
String sql = "SELECT ID, CODE, NAME, DESCRIPTION FROM IOS_FEATURE";
|
||||
String sql = "SELECT FEATURE_ID, CODE, NAME, DESCRIPTION FROM IOS_FEATURE";
|
||||
stmt = conn.prepareStatement(sql);
|
||||
rs = stmt.executeQuery();
|
||||
|
||||
while (rs.next()) {
|
||||
MobileFeature feature = new MobileFeature();
|
||||
feature.setId(rs.getInt("ID"));
|
||||
feature.setId(rs.getInt("FEATURE_ID"));
|
||||
feature.setCode(rs.getString("CODE"));
|
||||
feature.setName(rs.getString("NAME"));
|
||||
feature.setDescription(rs.getString("DESCRIPTION"));
|
||||
features.add(feature);
|
||||
}
|
||||
return features;
|
||||
} catch (SQLException e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user