Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
4 subscribers
Views
1695 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I have the following questions regarding the JPA in Appian: * Is the J
haithamr
over 12 years ago
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
0
haithamr
over 12 years ago
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
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mohammad Abusinnah
Appian Employee
over 12 years ago
Thanks for sharing!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel