Setting primary key

Hello ,

I have a requirement where i need to set the primary key of the cdt through an xsd and not using the interface .Which annotation can be used for the same ? I tried searching through existing CDT's for the setting primary key annotation but was not able to find one. Any help will be appreciated.

Thanks,

Rohit Ouhal

  Discussion posts and replies are publicly visible

Parents
  • Hi Rohit,
    My other fellow practitioners have already answered your query however for future use, I would suggest the reverse engineering approach where if you want to see these basic JPA notation usage in Appian XSD, what you could try, set the PK, autogenerated values for PK or FK references simply through create CDT from scratch option and then set what ever you want then generate the XSD of that CDT to see how it is configured in the XSD level. That might help.
    Thanks
Reply
  • Hi Rohit,
    My other fellow practitioners have already answered your query however for future use, I would suggest the reverse engineering approach where if you want to see these basic JPA notation usage in Appian XSD, what you could try, set the PK, autogenerated values for PK or FK references simply through create CDT from scratch option and then set what ever you want then generate the XSD of that CDT to see how it is configured in the XSD level. That might help.
    Thanks
Children
No Data