-
Notifications
You must be signed in to change notification settings - Fork 113
Refactor DAO classes and DB scripts #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mappingIds.add(rs.getInt(1)); | ||
} | ||
return mappingIds; | ||
// rs = stmt.getGeneratedKeys(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 77c4c34
@@ -39,6 +39,8 @@ | |||
public int addOperation(Operation operation) throws OperationManagementDAOException { | |||
int operationId; | |||
PreparedStatement stmt = null; | |||
ByteArrayOutputStream bao = null; | |||
ObjectOutputStream oos = null; | |||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cant we use try with resource here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #1275
int operationId; | ||
try { | ||
operationId = super.addOperation(operation); | ||
operation.setCreatedTimeStamp(new Timestamp(new java.util.Date().getTime()).toString()); | ||
operation.setId(operationId); | ||
operation.setEnabled(true); | ||
ProfileOperation profileOp = (ProfileOperation) operation; | ||
//ProfileOperation profileOp = (ProfileOperation) operation; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented line. And, can we change this to Java try with resource?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #1275
Add a description. |
Purpose
Refactoring DAO classes and DB scripts.