Posts

Showing posts from September, 2013

Find the modified attributes

   protected void doDML(int i, TransactionEvent transactionEvent) {         byte state = this.getEntityState();         if (state == this.STATUS_MODIFIED) {             System.out.println(this.getEmployeeId().toString() +                                " Has been Modified ");             //Object[] modifiedAttributes =this.getAttributeNames();             if (this.isAttributeChanged("FirstName")) {                 System.out.println(" FirstName Modified");             }             if (this.isAttributeChanged("LastName")) {                 System.out.println(" FirstName Modified");             }         }         super.doDML(i, transactionEvent);     }