@Override public CommandAssociatedEntity mapRow(ResultSet rs, int rowNum) throws SQLException { CommandAssociatedEntity entity = new CommandAssociatedEntity( getGuid(rs, "command_id"), VdcObjectType.valueOf(rs.getString("entity_type")), getGuid(rs, "entity_id")); entity.setEntityType(VdcObjectType.valueOf(rs.getString("entity_type"))); return entity; }