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
6 replies
Subscribers
7 subscribers
Views
2635 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I have 2 CDTs : "Employee" and "SecurityAccessCard". They ha
mayankk718
over 10 years ago
I have 2 CDTs : "Employee" and "SecurityAccessCard". They have one to one relationship between them. I have mapped "Employee" into a data store entity and querying it using a query rule. As I am using @OneToOne annotation in the XSD, my query rule will return the data of an "Employee" and the related data of the associated "SecurityAccessCard" as well. I want to sort the resultant data set (returned by my query rule) 2 be sorted based on 2 columns. The first column should be of "Employee" (consider any column for now) and the second column should be of "SecurityAccessCard" (consider any column for now). I believe we can use @OrderBy annotation for such purpose.
My question is, how should I use @OrderBy annotation for my use case ? My consolidated XSD (for both "Employee" and "SecurityAccessCard") is attached (referred the same from Appian Forum). Where should I place @OrderBy annotation in this XSD ?...
O2O.xsd
OriginalPostID-132221
OriginalPostID-132221
Discussion posts and replies are publicly visible
Parents
0
mayankk718
over 10 years ago
Actually, I wanted to compare the performance of sorting the data externally, and sorting it in XSDs for huge amount of data, say 3 lakh to 4 lakh records. I believe using JPA annotations should yield faster processing of the results, but I am not sure about the same. That is why I wanted to use @OrderBy in XSDs.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
mayankk718
over 10 years ago
Actually, I wanted to compare the performance of sorting the data externally, and sorting it in XSDs for huge amount of data, say 3 lakh to 4 lakh records. I believe using JPA annotations should yield faster processing of the results, but I am not sure about the same. That is why I wanted to use @OrderBy in XSDs.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data