Skip to content

Commit 7e59e42

Browse files
committed
Controlling order of sub elements. Might fix MrCsabaToth#14 too
1 parent 4a72561 commit 7e59e42

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

openempi/core/src/main/java/org/openhie/openempi/model/Dataset.java

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import javax.persistence.JoinColumn;
3232
import javax.persistence.ManyToOne;
3333
import javax.persistence.OneToMany;
34+
import javax.persistence.OrderBy;
3435
import javax.persistence.SequenceGenerator;
3536
import javax.persistence.Table;
3637
import javax.persistence.Temporal;
@@ -114,6 +115,7 @@ public void setFileName(String fileName) {
114115

115116
@OneToMany(mappedBy="dataset", cascade=CascadeType.ALL)
116117
@JoinColumn(name="dataset_id")
118+
@OrderBy("columnInformationId")
117119
public List<ColumnInformation> getColumnInformation() {
118120
return columnInformation;
119121
}

openempi/core/src/main/java/org/openhie/openempi/model/PersonMatch.java

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import javax.persistence.Lob;
3232
import javax.persistence.ManyToOne;
3333
import javax.persistence.OneToMany;
34+
import javax.persistence.OrderBy;
3435
import javax.persistence.SequenceGenerator;
3536
import javax.persistence.Table;
3637
import javax.persistence.Temporal;
@@ -179,6 +180,7 @@ public void setBloomFilterFillFactor(Double bloomFilterFillFactor) {
179180
}
180181

181182
@OneToMany(mappedBy="personMatch", cascade=CascadeType.ALL)
183+
@OrderBy("columnMatchInformationId")
182184
public List<ColumnMatchInformation> getColumnMatchInformation() {
183185
return columnMatchInformation;
184186
}

0 commit comments

Comments
 (0)