Hi, I am trying to map a composite key from a different CDT to another one

Hi,
I am trying to map a composite key from a different CDT to another one using one unique key inside xsd. How do I do it? Two columns from one cdt form a composite pair and I have another foriegn key coming from that table which defines the relationship. I want to map this foriegn key to that parent table inside CDT. What all JPA annotations should I use to get this behavior. I tried my best looking up online and troubleshooting with various things like @EmbeddedId, @Embeddable,@XmlInverseReference(mappedBy="fk_key")....but none of them parsed through appian cdt parser. Any help would be deeply appreciated.

OriginalPostID-202003

OriginalPostID-202003

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Appian Employee
    in reply to AK47

    You can import it, but you can't actually use it. If you do this, you will see a message that says: "Data types without primary keys, or with more than one primary key, prevent data stores from publishing. In order to publish a data store that contains this data type, you must modify the data type so that it has only one primary key, then publish the data store. Otherwise, the data store will be saved as a draft."

    The CDT it self will be created but when you attempt to publish the data store it will fail. This means you can't read or write to the database, so the CDT itself becomes essentially useless. Composite keys are not supported in Appian when reading / writing to a database.

Children
No Data