Skip to main content
Known Participant
Mar 30, 2022 8:40 AM UTC
Question

can we create a foreign key while creating cdt from scratch?

can we create a foreign key while creating cdt from scratch?

    3 replies

    stefanhelzle0001
    Brainy
    Mar 30, 2022 9:04 AM UTC

    https://docs.appian.com/suite/help/22.1/cdt_design_guidance.html

    If you nest CDTs, Appian will take care of that.

    harshitb6843
    Brainy
    Mar 30, 2022 9:29 AM UTC

    In case you don't want to nest CDTs, then you can create a CDT via XSD and then use the JPA annotations to establish the foreign key relation on the CDT level but that wouldn't add an FK constraint on the DB level. 

    christineh465186
    Participating Frequently
    Apr 1, 2022 7:07 PM UTC

    I always create my FKs in a script (manually). It also serves as a reminder / nudge to create indexes while at it!