@@ -24,7 +24,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
2424 select c.contactId
2525 from ContactEntity c
2626 where c.dateOfBirth = :dateOfBirth
27- order by c.contactId
2827 """ ,
2928 )
3029 fun findAllByDateOfBirthEquals (dateOfBirth : LocalDate , pageable : Pageable ): Page <Long >
@@ -37,7 +36,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
3736 and (:lastName is null or c.lastName ilike %:lastName% escape '#')
3837 and (:firstName is null or c.firstName ilike %:firstName% escape '#')
3938 and (:middleNames is null or c.middleNames ilike %:middleNames% escape '#')
40- order by c.contactId
4139 """ ,
4240 )
4341 fun findAllByDateOfBirthAndNamesMatch (dateOfBirth : LocalDate , firstName : String? , middleNames : String? , lastName : String? , pageable : Pageable ): Page <Long >
@@ -50,7 +48,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
5048 and (:lastName is null or c.lastName ilike :lastName)
5149 and (:firstName is null or c.firstName ilike :firstName)
5250 and (:middleNames is null or c.middleNames ilike :middleNames)
53- order by c.contactId
5451 """ ,
5552 )
5653 fun findAllByDateOfBirthAndNamesExact (dateOfBirth : LocalDate , firstName : String? , middleNames : String? , lastName : String? , pageable : Pageable ): Page <Long >
@@ -63,7 +60,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
6360 and ( :lastName is null or c.lastNameSoundex = CAST(function('soundex', CAST(:lastName AS string)) AS char(4)))
6461 and ( :firstName is null or c.firstNameSoundex = CAST(function('soundex', CAST(:firstName AS string)) AS char(4)))
6562 and (:middleNames is null or c.middleNamesSoundex = CAST(function('soundex', CAST(:middleNames AS string)) AS char(4)))
66- order by c.contactId
6763 """ ,
6864 )
6965 fun findAllByDateOfBirthAndNamesSoundLike (dateOfBirth : LocalDate , firstName : String? , middleNames : String? , lastName : String? , pageable : Pageable ): Page <Long >
@@ -75,7 +71,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
7571 where (:lastName is null or c.lastName ilike :lastName)
7672 and (:firstName is null or c.firstName ilike :firstName)
7773 and (:middleNames is null or c.middleNames ilike :middleNames)
78- order by c.contactId
7974 """ ,
8075 )
8176 fun findAllByNamesExact (firstName : String? , middleNames : String? , lastName : String? , pageable : Pageable ): Page <Long >
@@ -87,7 +82,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
8782 where (:lastName is null or c.lastName ilike %:lastName% escape '#')
8883 and (:firstName is null or c.firstName ilike %:firstName% escape '#')
8984 and (:middleNames is null or c.middleNames ilike %:middleNames% escape '#')
90- order by c.contactId
9185 """ ,
9286 )
9387 fun findAllByNamesMatch (firstName : String? , middleNames : String? , lastName : String? , pageable : Pageable ): Page <Long >
@@ -99,7 +93,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
9993 where (:lastName is null or c.lastNameSoundex = CAST(function('soundex', CAST(:lastName AS string)) AS char(4)))
10094 and (:firstName is null or c.firstNameSoundex = CAST(function('soundex', CAST(:firstName AS string)) AS char(4)))
10195 and (:middleNames is null or c.middleNamesSoundex = CAST(function('soundex', CAST(:middleNames AS string)) AS char(4)))
102- order by c.contactId
10396 """ ,
10497 )
10598 fun findAllByNamesSoundLike (firstName : String? , middleNames : String? , lastName : String? , pageable : Pageable ): Page <Long >
@@ -114,8 +107,7 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
114107 and (:firstName is null or ca.firstName ilike :firstName)
115108 and (:middleNames is null or ca.middleNames ilike :middleNames)
116109 and ca.revType in (0, 1)
117- )
118- order by c.contactId
110+ )
119111 """ ,
120112 )
121113 fun findAllByNamesExactAndHistory (firstName : String? , middleNames : String? , lastName : String? , pageable : Pageable ): Page <Long >
@@ -134,7 +126,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
134126 select c.contact_id
135127 from contact c
136128 where c.contact_id in (select contact_id from filtered_contacts)
137- order by c.contact_id
138129 """ ,
139130 countQuery = """
140131 with filtered_contacts AS (
@@ -168,7 +159,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
168159 select c.contact_id
169160 from contact c
170161 where c.contact_id in (select contact_id from filtered_contacts)
171- order by c.contact_id
172162""" ,
173163 countQuery = """
174164 with filtered_contacts AS (
@@ -201,7 +191,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
201191 and (:middleNames is null or ca.middleNames ilike :middleNames)
202192 and ca.revType in (0, 1)
203193 )
204- order by c.contactId
205194 """ ,
206195 )
207196 fun findAllByDateOfBirthAndNamesExactAndHistory (dateOfBirth : LocalDate , firstName : String? , middleNames : String? , lastName : String? , pageable : Pageable ): Page <Long >
@@ -218,8 +207,7 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
218207 and (:firstName is null or ca.firstName ilike %:firstName% escape '#')
219208 and (:middleNames is null or ca.middleNames ilike %:middleNames% escape '#')
220209 and ca.revType in (0, 1)
221- )
222- order by c.contactId
210+ )
223211 """ ,
224212 )
225213 fun findAllByDateOfBirthAndNamesMatchAndHistory (dateOfBirth : LocalDate , firstName : String? , middleNames : String? , lastName : String? , pageable : Pageable ): Page <Long >
@@ -237,7 +225,6 @@ interface ContactSearchRepository : JpaRepository<ContactEntity, Long> {
237225 and (:middleNames is null or ca.middleNamesSoundex = CAST(function('soundex', CAST(:middleNames as string)) AS char(4)))
238226 and ca.revType in (0, 1)
239227 )
240- order by c.contactId
241228 """ ,
242229 )
243230 fun findAllByDateOfBirthAndNamesSoundLikeAndHistory (dateOfBirth : LocalDate , firstName : String? , middleNames : String? , lastName : String? , pageable : Pageable ): Page <Long >
0 commit comments