Skip to main content
March 30, 2022
Question

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

  • March 30, 2022
  • 3 replies
  • 0 views

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

    3 replies

    stefanhelzle0001
    Brainy
    March 30, 2022

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

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

    harshitb6843
    March 30, 2022

    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
    April 1, 2022

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