mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix app adding issue
This commit is contained in:
parent
8fa6abf697
commit
74e4b2ca5d
@ -56,8 +56,7 @@ public class GenericApplicationDAOImpl extends AbstractDAOImpl implements Applic
|
|||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug("Request received in DAO Layer to create an application");
|
log.debug("Request received in DAO Layer to create an application");
|
||||||
log.debug("ApplicationEntity Details : ");
|
log.debug("ApplicationEntity Details : ");
|
||||||
// log.debug("App Name : " + application.getName() + " App Type : "
|
log.debug("App Name : " + application.getName() + " App Type : " + application.getType());
|
||||||
// + application.getType() + " User Name : " + application.getUser().getUserName());
|
|
||||||
}
|
}
|
||||||
Connection conn;
|
Connection conn;
|
||||||
PreparedStatement stmt = null;
|
PreparedStatement stmt = null;
|
||||||
@ -71,13 +70,13 @@ public class GenericApplicationDAOImpl extends AbstractDAOImpl implements Applic
|
|||||||
+ "TYPE, "
|
+ "TYPE, "
|
||||||
+ "SUB_TYPE, "
|
+ "SUB_TYPE, "
|
||||||
+ "TENANT_ID, "
|
+ "TENANT_ID, "
|
||||||
+ "DEVICE_TYPE_ID) VALUES (?, ?, ?, ?, ?)", Statement.RETURN_GENERATED_KEYS);
|
+ "DEVICE_TYPE_ID) VALUES (?, ?, ?, ?, ?, ?)", Statement.RETURN_GENERATED_KEYS);
|
||||||
stmt.setString(1, application.getName());
|
stmt.setString(1, application.getName());
|
||||||
stmt.setString(2, application.getDescription());
|
stmt.setString(2, application.getDescription());
|
||||||
stmt.setString(3, application.getType());
|
stmt.setString(3, application.getType());
|
||||||
stmt.setString(4, application.getSubType());
|
stmt.setString(4, application.getSubType());
|
||||||
stmt.setInt(5, tenantId);
|
stmt.setInt(5, tenantId);
|
||||||
// stmt.setInt(6, application.getDeviceTypeObj().getId());
|
stmt.setInt(6, application.getDeviceTypeId());
|
||||||
stmt.executeUpdate();
|
stmt.executeUpdate();
|
||||||
|
|
||||||
rs = stmt.getGeneratedKeys();
|
rs = stmt.getGeneratedKeys();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user