Exemplo n.º 1
0
 /**
  * @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;
 }
Exemplo n.º 2
0
 /**
  * @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;
 }