Hi , does anyone have a real example of CDT with the association one-to-man

Hi ,
does anyone have a real example of CDT with the association one-to-many?
I don't know how to set correctly the generic string schema (eg. xmlns="urn:appian:example:assocations:one-to-many" ).

Thanks...

OriginalPostID-34827

OriginalPostID-34827

  Discussion posts and replies are publicly visible

Parents
  • Generated DDL:
    create table `company` (
    `id` integer not null auto_increment,
    `name` varchar(255) not null,
    primary key (`id`)
    ) type=InnoDB;

    create table `officelocation` (
    `id` integer not null auto_increment,
    `address1` varchar(255) not null,
    `address2` varchar(255),
    `city` varchar(255) not null,
    `state` varchar(255) not null,
    `zip` integer,
    `company_locations_id` integer,
    `company_locations_idx` integer,
    primary key (`id`)
    ) type=InnoDB;

    alter table `officelocation`
    add index company_locations (`company_locations_id`),
    add constraint company_locations
    foreign key (`company_locations_id`)
    references `company` (`id`);
Reply
  • Generated DDL:
    create table `company` (
    `id` integer not null auto_increment,
    `name` varchar(255) not null,
    primary key (`id`)
    ) type=InnoDB;

    create table `officelocation` (
    `id` integer not null auto_increment,
    `address1` varchar(255) not null,
    `address2` varchar(255),
    `city` varchar(255) not null,
    `state` varchar(255) not null,
    `zip` integer,
    `company_locations_id` integer,
    `company_locations_idx` integer,
    primary key (`id`)
    ) type=InnoDB;

    alter table `officelocation`
    add index company_locations (`company_locations_id`),
    add constraint company_locations
    foreign key (`company_locations_id`)
    references `company` (`id`);
Children
No Data