Skip to main content
May 31, 2021
Question

jpa annotations

  • May 31, 2021
  • 7 replies
  • 0 views

can some one explain why jpa annotations are mainly used in appian and tell me some scenerios where it is most useful

    7 replies

    May 31, 2021

    Java Persistence API (JPA) is the Java standard for mapping Java objects to relational databases. Since Appian BPM built on the Java platform we can use JPA annotations. Please find the following URL for supported JPA annotations.

    https://docs.appian.com/suite/help/21.2/Supported_XSD_Elements_and_JPA_Annotations.html#supported-jpa-annotations

    June 1, 2021

    can u please give a scnerio where it is useful

    June 1, 2021

    Assume there is a DB table created with the primary key as 'id', now you have to create a field in XSD as shown in the screenshot.

    XSD:

    June 5, 2021

    any useful answers !

    June 7, 2021

    Hi Avinash,

    Pls try to go through the below link  which contains video tutorial. so that you will get idea about jpa usages in CDT.

    https://academy.appian.com/#/online-courses/ce361d9a-79ba-42d0-bc10-a4279d46e874

    Below are the few use cases or examples

    1)Using XSD we can create table. But some scenarios need to follow different naming conventions as per the organisation standards . in that case ,we download the xsd and using annotations we can change the field names,size,property etc.

    ex: usage in editing the columns in XSD's(mentioned the attributes like nullable = true, allows user to mention/editing the size of the db field-varchar(10),@column for adding new column),Nested CDT's configuration (one:many, many:many, jointable).

    Hope this helps.

    thanks,Barat

    June 8, 2021

    thanks baratc