I have the following questions regarding the JPA in Appian: * Is the J

I have the following questions regarding the JPA in Appian:
* Is the JPA Lazy loading applicable in Appian? For example using the annotation: @ManyToOne(fetch=FetchType.LAZY)
* Is the JPA inheritance applicable in Appian? For example using the annotation: @Inheritance(strategy=InheritanceType.JOINED)...

OriginalPostID-26985

OriginalPostID-26985

  Discussion posts and replies are publicly visible

Parents
  • LAZY loading as well as the inheritance are applicable in Appian; Appian uses hibernate and as long as hibernate support it then Appian will support it.

    See the following example for an XSD that represents the inheritance relationship:
    <?xml version="1.0" encoding="utf-8" ?>
    <schema
              xmlns:scsbds="http://ebs.scsb.gov.sa/scsbds" targetNamespace="http://ebs.scsb.gov.sa/scsbds"
              elementFormDefault="qualified"
              xmlns="www.w3.org/.../XMLSchema">
              
              <complexType name="TST_HR_Loan">
                        <annotation>
                                  <appinfo source="appian.jpa">
                                            @Table(name="TST_HR_Loan")
                                            @SequenceGenerator(
                                             name="TST_HR_Loan_Seq",
                                             sequenceName="TST_HR_Loan_Seq"
                                            )
                                            @Inheritance(strategy=InheritanceType.JOINED)
    </appinfo>
                        </annotation>
                        <sequence>
                                  <element name="id" type="long">
                                            <annotation>
                                                      <appinfo source="appian.jpa">
                                                                @Id
                                                                @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="TST_HR_Loan_Seq")
                                                      </appinfo>
                                            </annotation>
                                  </element
Reply
  • LAZY loading as well as the inheritance are applicable in Appian; Appian uses hibernate and as long as hibernate support it then Appian will support it.

    See the following example for an XSD that represents the inheritance relationship:
    <?xml version="1.0" encoding="utf-8" ?>
    <schema
              xmlns:scsbds="http://ebs.scsb.gov.sa/scsbds" targetNamespace="http://ebs.scsb.gov.sa/scsbds"
              elementFormDefault="qualified"
              xmlns="www.w3.org/.../XMLSchema">
              
              <complexType name="TST_HR_Loan">
                        <annotation>
                                  <appinfo source="appian.jpa">
                                            @Table(name="TST_HR_Loan")
                                            @SequenceGenerator(
                                             name="TST_HR_Loan_Seq",
                                             sequenceName="TST_HR_Loan_Seq"
                                            )
                                            @Inheritance(strategy=InheritanceType.JOINED)
    </appinfo>
                        </annotation>
                        <sequence>
                                  <element name="id" type="long">
                                            <annotation>
                                                      <appinfo source="appian.jpa">
                                                                @Id
                                                                @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="TST_HR_Loan_Seq")
                                                      </appinfo>
                                            </annotation>
                                  </element
Children
No Data