public Object getEntityFromHashMap(HashMap hm) {
   ItemDataBean eb = new ItemDataBean();
   this.setEntityAuditInformation(eb, hm);
   eb.setId(((Integer) hm.get("item_data_id")).intValue());
   eb.setEventCRFId(((Integer) hm.get("event_crf_id")).intValue());
   eb.setItemId(((Integer) hm.get("item_id")).intValue());
   eb.setValue((String) hm.get("value"));
   eb.setStatus(Status.get(((Integer) hm.get("status_id")).intValue()));
   return eb;
 }
  public EntityBean create(EntityBean eb) {
    ItemDataBean idb = (ItemDataBean) eb;
    HashMap variables = new HashMap();
    variables.put(new Integer(1), new Integer(idb.getEventCRFId()));
    variables.put(new Integer(2), new Integer(idb.getItemId()));
    variables.put(new Integer(3), new Integer(idb.getStatus().getId()));
    variables.put(new Integer(4), idb.getValue());
    variables.put(new Integer(5), new Integer(idb.getOwnerId()));
    this.execute(digester.getQuery("create"), variables);

    if (isQuerySuccessful()) {
      idb.setId(getCurrentPK());
    }

    return idb;
  }