Esempio n. 1
0
 @Override
 protected final void entityLoad(EntityFields data) {
   username = (String) data.get("username");
   encodedpassword = (String) data.get("encodedpassword");
   usercode = (String) data.get("usercode");
   enabled = (Boolean) data.get("enabled");
   id = (Integer) data.get("id");
   createdby = (String) data.get("createdby");
   try {
     createdon.setDateUsingSQLString((String) data.get("createdon"));
   } catch (BadFormatException ex) {
     throw new LogicException("Load reported bad Timestamp format - should never happen!!");
   }
   updatedby = (String) data.get("updatedby");
   try {
     updatedon.setDateUsingSQLString((String) data.get("updatedon"));
   } catch (BadFormatException ex) {
     throw new LogicException("Load reported bad Timestamp format - should never happen!!");
   }
 }