Exemplo n.º 1
0
 @Override
 protected final boolean entityValues(EntityFields data) {
   data.put("username", username);
   data.put("encodedpassword", encodedpassword);
   data.put("usercode", usercode);
   data.put("enabled", enabled);
   return true;
 }
Exemplo n.º 2
0
 @Override
 protected final boolean entityDiffs(EntityFields data) {
   if (!username.equals(usernameOriginal)) {
     data.put("username", username);
   }
   if (!encodedpassword.equals(encodedpasswordOriginal)) {
     data.put("encodedpassword", encodedpassword);
   }
   if (!usercode.equals(usercodeOriginal)) {
     data.put("usercode", usercode);
   }
   if (enabled != enabledOriginal) {
     data.put("enabled", enabled);
   }
   return true;
 }