/** * @param pUser * @param pTodayDate * @return */ protected Audit createAudit(User pUser, java.util.Date pTodayDate) { Audit lAudit = new Audit(); lAudit.setCreatedBy(pUser.getUserId()); lAudit.setCreatedDate(pTodayDate); lAudit.setLastUpdatedBy(pUser.getUserId()); lAudit.setLastUpdatedDate(pTodayDate); return lAudit; }
/** * @param pUser * @return */ protected Audit createAudit(User pUser) { java.util.Date lTodayDate = new java.sql.Timestamp(System.currentTimeMillis()); Audit lAudit = new Audit(); lAudit.setCreatedBy(pUser.getUserId()); lAudit.setCreatedDate(lTodayDate); lAudit.setLastUpdatedBy(pUser.getUserId()); lAudit.setLastUpdatedDate(lTodayDate); return lAudit; }