-
Notifications
You must be signed in to change notification settings - Fork 75
/
hibernate4.windup.xml
825 lines (819 loc) · 53.6 KB
/
hibernate4.windup.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
<?xml version="1.0"?>
<ruleset xmlns="http://windup.jboss.org/schema/jboss-ruleset" id="hibernate4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://windup.jboss.org/schema/jboss-ruleset http://windup.jboss.org/schema/jboss-ruleset/windup-jboss-ruleset.xsd">
<metadata>
<description>
This ruleset provides analysis for migration to Hibernate 5.x.
</description>
<dependencies>
<addon id="org.jboss.windup.rules,windup-rules-javaee,2.4.0.Final" />
<addon id="org.jboss.windup.rules,windup-rules-java,2.4.0.Final" />
</dependencies>
<sourceTechnology id="hibernate" versionRange="[4,5)" />
<sourceTechnology id="eap" versionRange="[6,7)" />
<targetTechnology id="hibernate" versionRange="[5,)" />
<targetTechnology id="eap" versionRange="[7,8)" />
<tag>hibernate</tag>
<tag>configuration</tag>
</metadata>
<rules>
<rule id="hibernate4-00001">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addFile{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addFile()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataSources#addFile` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00002">
<when>
<javaclass references="org.hibernate.cfg.Configuration.add({*})">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.add()" effort="1" category-id="optional">
<message>There is no direct replacement for method `org.hibernate.cfg.Configuration#add()`.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00003">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addXML{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addXML()" effort="1" category-id="optional">
<message>There is no direct replacement for method `org.hibernate.cfg.Configuration#addXML`.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00004">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addCacheableFile{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addCacheableFile()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataSources#addCacheableFile` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00005">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addURL{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addURL()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataSources#addURL` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00006">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addInputStream{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addInputStream()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataSources#addInputStream` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00007">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addResource{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addResource()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataSources#addResource` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00008">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addClass{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addClass()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataSources#addClass` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00009">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addAnnotatedClass{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addAnnotatedClass()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataSources#addAnnotatedClass` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00010">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addPackage{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addPackage()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataSources#addPackage` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00011">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addJar{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addJar()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataSources#addJar` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00012">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addDirectory{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addDirectory()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataSources#addDirectory` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00013">
<when>
<javaclass references="org.hibernate.cfg.Configuration.registerTypeContributor{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.registerTypeContributor()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataBuilder#applyTypes` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00014">
<when>
<javaclass references="org.hibernate.cfg.Configuration.registerTypeOverride{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.registerTypeOverride()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.MetadataBuilder#applyBasicType` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00015">
<when>
<javaclass references="org.hibernate.cfg.Configuration.setProperty{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setProperty()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.registry.StandardServiceRegistryBuilder#applySetting` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00016">
<when>
<javaclass references="org.hibernate.cfg.Configuration.setProperties{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setProperties()" effort="1" category-id="optional">
<message>There is no direct replacement.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00017">
<when>
<javaclass references="org.hibernate.cfg.Configuration.addProperties{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addProperties()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.registry.StandardServiceRegistryBuilder#applySettings` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00018">
<when>
<javaclass references="org.hibernate.cfg.Configuration.setNamingStrategy{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setNamingStrategy()" effort="1" category-id="optional">
<message>
Historically Hibernate provided just a singular contract for applying a "naming strategy".
Starting in 5.0 this has been split into 2 distinct contracts:
* ImplicitNamingStrategy - is used whenever a table or column is not explicitly named to determine the name to use.
* PhysicalNamingStrategy - is used to convert a "logical name" (either implicit or explicit) name of a table or column into a physical name (e.g. following corporate naming guidelines)
Use methods `org.hibernate.boot.MetadataBuilder#setImplicitNamingStrategy(ImplicitNamingStrategy implicitNamingStrategy)` or
`org.hibernate.boot.MetadataBuilder#setPhysicalNamingStrategy(PhysicalNamingStrategy physicalNamingStrategy)`
instead of `public Configuration setNamingStrategy(NamingStrategy namingStrategy)()`
</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00021">
<when>
<javaclass references="org.hibernate.cfg.Configuration.{configure}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.configure()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.registry.StandardServiceRegistryBuilder#configure` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
<where param="configure">
<matches pattern="(configure\([^)]*\))" />
</where>
</rule>
<rule id="hibernate4-00022">
<when>
<javaclass references="org.hibernate.cfg.Configuration.setInterceptor{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setInterceptor()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.SessionFactoryBuilder#applyInterceptor` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00023">
<when>
<javaclass references="org.hibernate.cfg.Configuration.setEntityNotFoundDelegate{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setEntityNotFoundDelegate()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.SessionFactoryBuilder#applyEntityNotFoundDelegate` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00024">
<when>
<javaclass references="org.hibernate.cfg.Configuration.setSessionFactoryObserver{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setSessionFactoryObserver()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.SessionFactoryBuilder#addSessionFactoryObservers` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00025">
<when>
<javaclass references="org.hibernate.cfg.Configuration.setCurrentTenantIdentifierResolver{*}">
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setCurrentTenantIdentifierResolver()" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.SessionFactoryBuilder#applyCurrentTenantIdentifierResolver` instead.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#re-purposing-of-configuration"
title="Changes in Configuration for Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#hibernate_and_jpa_migration_changes"
title="Hibernate and JPA migration changes" />
<tag>hibernate</tag>
<tag>configuration</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00026">
<when>
<javaclass references="org.hibernate.metamodel.spi.{type}"/>
</when>
<perform>
<hint title="Hibernate 5 - Moved method org.hibernate.metamodel.spi.{type}" effort="1" category-id="optional">
<message>Use `org.hibernate.boot.model.{type}` instead.</message>
<link title="Hibernate 5 - Other changes to classes/packages"
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_other_classes" />
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#type-handling"
title="Changes in Type handling for Hibernate 5" />
<tag>hibernate</tag>
</hint>
</perform>
<where param="type">
<matches pattern="(TypeContributor|TypeContributions)"/>
</where>
</rule>
<rule id="hibernate4-00027">
<when>
<javaclass references="org.hibernate.cfg.AnnotationConfiguration"/>
</when>
<perform>
<hint title="Hibernate 5 - Removed class org.hibernate.cfg.AnnotationConfiguration" effort="1" category-id="optional">
<message>
All functionality from `org.hibernate.cfg.AnnotationConfiguration` has been moved to `org.hibernate.cfg.Configuration`.
</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#deprecations"
title="Removed or deprecated types in Hibernate 5" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_deprecations"
title="Removed and Deprecated Classes" />
<tag>hibernate</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00028">
<when>
<javaclass references="org.hibernate.id.{idclass}"/>
</when>
<perform>
<hint title="Hibernate 5 - Removed deprecated class org.hibernate.id.{idclass}" effort="1" category-id="optional">
<message>Use `org.hibernate.id.enhanced.SequenceStyleGenerator` instead.</message>
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_deprecations"
title="Removed and Deprecated Classes" />
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#deprecations"
title="Removed or deprecated types in Hibernate 5" />
<tag>hibernate</tag>
</hint>
</perform>
<where param="idclass">
<matches pattern="(TableGenerator|TableHiLoGenerator|SequenceGenerator|SequenceIdentityGenerator|SequenceHiLoGenerator)" />
</where>
</rule>
<rule id="hibernate4-00030">
<when>
<javaclass references="org.hibernate.hql.spi.{type}" />
</when>
<perform>
<hint title="Hibernate 5 - Moved class org.hibernate.hql.spi.{type}" effort="1" category-id="optional">
<message>Hibernate 5 moved `org.hibernate.hql.spi.{type}` class to new `org.hibernate.hql.spi.id` package.</message>
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#misc"
title="Hibernate 5 Misc changes" />
<tag>hibernate</tag>
</hint>
</perform>
<where param="type">
<matches pattern="(MultiTableBulkIdStrategy|MultiTableBulkIdStrategy.DeleteHandler|MultiTableBulkIdStrategy.UpdateHandler|AbstractTableBasedBulkIdHandler|AbstractTableBasedBulkIdHandler.ProcessedWhereClause|TableBasedDeleteHandlerImpl|TableBasedUpdateHandlerImpl)" />
</where>
</rule>
<rule id="hibernate4-00031">
<when>
<javaclass references="org.hibernate.hql.spi.PersistentTableBulkIdStrategy" />
</when>
<perform>
<hint title="Hibernate 5 - Moved class org.hibernate.hql.spi.PersistentTableBulkIdStrategy" effort="1" category-id="optional">
<message>Hibernate 5 moved `org.hibernate.hql.spi.PersistentTableBulkIdStrategy` class to new `org.hibernate.hql.spi.id.persistent` package.</message>
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_miscellaneous"
title="Other Hibernate ORM 5 changes" />
<tag>hibernate</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00032">
<when>
<javaclass references="org.hibernate.hql.spi.TemporaryTableBulkIdStrategy" />
</when>
<perform>
<hint title="Hibernate 5 - Replaced class org.hibernate.hql.spi.TemporaryTableBulkIdStrategy" effort="1" category-id="optional">
<message>Hibernate 5 replaced `org.hibernate.hql.spi.TemporaryTableBulkIdStrategy` class with `org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy` and `org.hibernate.hql.spi.id.local.LocalTemporaryTableBulkIdStrategy`.</message>
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_miscellaneous"
title="Other Hibernate ORM 5 changes" />
<tag>hibernate</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00033">
<when>
<javaclass references="org.hibernate.integrator.spi.Integrator">
<location>IMPLEMENTS_TYPE</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Changed interface org.hibernate.integrator.spi.Integrator" effort="1" category-id="optional">
<message>Hibernate 5 changed contract `org.hibernate.integrator.spi.Integrator` to account for bootstrap redesign.
Check if you implement method `integrate(Configuration configuration, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)` which is no longer there.
</message>
<link title="Hibernate 5 - Other changes to classes/packages"
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_other_classes" />
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#changedmoved-contracts"
title="Hibernate 5 Changed or Moved Contracts" />
<tag>hibernate</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00034">
<when>
<javaclass references="org.hibernate.engine.jdbc.spi.JdbcServices">
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Changed class org.hibernate.engine.jdbc.spi.JdbcServices" effort="1" category-id="optional">
<message>Hibernate 5 extracted new interface `org.hibernate.engine.jdbc.env.spi.JdbcEnvironment` from `org.hibernate.engine.jdbc.spi.JdbcServices`.</message>
<link title="Hibernate 5 - Other changes to classes/packages"
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_other_classes" />
<link
href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#changedmoved-contracts"
title="Hibernate 5 Changed or Moved Contracts" />
<link
href="https://docs.jboss.org/hibernate/orm/5.0/javadocs/index.html?org/hibernate/engine/jdbc/env/spi/JdbcEnvironment.html"
title="Hibernate 5 JdbcEnvironment new API" />
<tag>hibernate</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00035">
<when>
<javaclass references="org.hibernate.id.Configurable">
<location>IMPLEMENTS_TYPE</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - Changed signature org.hibernate.id.Configurable" effort="1" category-id="optional">
<message>Hibernate 5 changed the signature of `org.hibernate.id.Configurable#configure` method to accept `ServiceRegistry` rather than just `Dialect`</message>
<link title="Hibernate 5 - Other changes to classes/packages"
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_other_classes" />
<link
href="https://docs.jboss.org/hibernate/orm/5.0/javadocs/org/hibernate/id/Configurable.html#configure-org.hibernate.type.Type-java.util.Properties-org.hibernate.service.ServiceRegistry-"
title="Hibernate 5 Configurable API" />
<tag>hibernate</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00036">
<when>
<javaclass references="org.hibernate.id.PersistentIdentifierGenerator">
<location>IMPLEMENTS_TYPE</location>
</javaclass>
</when>
<perform>
<hint title="Hibernate 5 - PersistentIdentifierGenerator implementations need to implement ExportableProducer#registerExportables" effort="1" category-id="optional">
<message>Since Hibernate 5, The `org.hibernate.id.PersistentIdentifierGenerator` extends new `org.hibernate.boot.model.relational.ExportableProducer` interface which will affect all `org.hibernate.id.PersistentIdentifierGenerator` implementations.
Therefore you need to implement additionally `ExportableProducer#registerExportables(org.hibernate.boot.model.relational.Database database)` method.</message>
<link title="HIbernate 5 - Other changes to classes/packages"
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_other_classes" />
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_miscellaneous"
title="Hibernate 5 Changed or Moved Contracts" />
<link
href="https://docs.jboss.org/hibernate/orm/5.0/javadocs/org/hibernate/boot/model/relational/ExportableProducer.html#registerExportables-org.hibernate.boot.model.relational.Database-"
title="Hibernate 5 ExportableProducer API" />
<tag>hibernate</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00037">
<when>
<javaclass references="org.hibernate.envers.configuration.AuditConfiguration" />
</when>
<perform>
<hint title="Hibernate 5 - Removed class org.hibernate.envers.configuration.AuditConfiguration" effort="1" category-id="optional">
<message>Hibernate 5 removed `AuditConfiguration` in preference for new `org.hibernate.envers.boot.internal.EnversService`.</message>
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_miscellaneous"
title="Other Hibernate ORM 5 changes" />
<link
href="https://docs.jboss.org/hibernate/orm/5.0/javadocs/index.html?org/hibernate/envers/boot/internal/EnversService.html"
title="Hibernate 5 EnversService API" />
<tag>hibernate</tag>
</hint>
</perform>
</rule>
<rule id="hibernate4-00038">
<when>
<or>
<javaclass references="org.hibernate.spatial.dialect.{spatial}">
<location>INHERITANCE</location>
</javaclass>
<javaclass references="org.hibernate.spatial.JTSGeometryJavaTypeDescriptor">
<location>INHERITANCE</location>
</javaclass>
<javaclass references="org.hibernate.spatial.GeolatteGeometryJavaTypeDescriptor">
<location>INHERITANCE</location>
</javaclass>
<javaclass references="org.hibernate.type.descriptor.java.{javatype}">
<location>INHERITANCE</location>
</javaclass>
<javaclass references="org.hibernate.type.descriptor.sql.{sqltype}">
<location>INHERITANCE</location>
</javaclass>
<javaclass references="org.hibernate.type.descriptor.converter.AttributeConverterSqlTypeDescriptorAdapter">
<location>INHERITANCE</location>
</javaclass>
<javaclass references="org.hibernate.type.PostgresUUIDType.PostgresUUIDSqlTypeDescriptor">
<location>INHERITANCE</location>
</javaclass>
</or>
</when>
<perform>
<hint
title="Hibernate 5 - Registration needed for built-in implementations of org.hibernate.type.descriptor.sql.SqlTypeDescriptor"
effort="1" category-id="optional">
<message>Built-in implementations of `org.hibernate.type.descriptor.sql.SqlTypeDescriptor` and `org.hibernate.type.descriptor.java.JavaTypeDescriptor` no longer
auto-register themselves with `org.hibernate.type.descriptor.sql.SqlTypeDescriptorRegistry` and `org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry`.
Applications using custom `SqlTypeDescriptor`/`JavaTypeDescriptor` implementations which extends the built-in ones and
rely on that behavior should be updated to call `SqlTypeDescriptorRegistry#addDescriptor` or `JavaTypeDescriptorRegistry#addDescriptor` themselves.
This warning is important especially for users of Hibernate 4.3.</message>
<link href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migration_hibernate_orm_changes_type_handling"
title="Hibernate 5 Type Handling" />
<link
href="https://docs.jboss.org/hibernate/orm/5.0/javadocs/index.html?org/hibernate/type/descriptor/sql/SqlTypeDescriptorRegistry.html"
title="Hibernate 5 javadoc for SqlTypeDescriptorRegistry#addDescriptor" />
<link href="https://docs.jboss.org/hibernate/orm/5.0/javadocs/index.html?org/hibernate/type/descriptor/java/JavaTypeDescriptorRegistry.html" title="Hibernate 5 javadoc for JavaTypeDescriptorRegistry#addDescriptor" />
<tag>hibernate</tag>
</hint>
</perform>
<where param="spatial">
<matches
pattern="(mysql.MySQLGeometryTypeDescriptor | h2geodb.GeoDBGeometryTypeDescriptor | postgis.PGGeometryTypeDescriptor | oracle.SDOGeometryTypeDescriptor | sqlserver.SqlServer2008GeometryTypeDescriptor)" />
</where>
<where param="javatype">
<matches
pattern="(AbstractTypeDescriptor|BigDecimalTypeDescriptor|BigIntegerTypeDescriptor|BlobTypeDescriptor|BooleanTypeDescriptor|ByteArrayTypeDescriptor|ByteTypeDescriptor|CalendarDateTypeDescriptor|CalendarTimeTypeDescriptor|CalendarTypeDescriptor|CharacterArrayTypeDescriptor|CharacterTypeDescriptor|ClassTypeDescriptor|ClobTypeDescriptor|CurrencyTypeDescriptor|DateTypeDescriptor|DoubleTypeDescriptor|DurationJavaDescriptor|EnumJavaTypeDescriptor|FloatTypeDescriptor|InstantJavaDescriptor|IntegerTypeDescriptor|JavaTypeDescriptorRegistry.FallbackJavaTypeDescriptor|JdbcDateTypeDescriptor|JdbcTimestampTypeDescriptor|JdbcTimeTypeDescriptor|LocalDateTimeJavaDescriptor|LocalDateJavaDescriptor|LocaleTypeDescriptor|LocalTimeJavaDescriptor|LongTypeDescriptor|NClobTypeDescriptor|OffsetDateTimeJavaDescriptor|OffsetTimeJavaDescriptor|PrimitiveByteArrayTypeDescriptor|PrimitiveCharacterArrayTypeDescriptor|SerializableTypeDescriptor|ShortTypeDescriptor|StringTypeDescriptor|TimeZoneTypeDescriptor|UrlTypeDescriptor|UUIDTypeDescriptor|ZonedDateTimeJavaDescriptor)" />
</where>
<where param="sqltype">
<matches
pattern="(BigIntTypeDescriptor|BinaryTypeDescriptor|BitTypeDescriptor|BlobTypeDescriptor|BooleanTypeDescriptor|CharTypeDescriptor|ClobTypeDescriptor|DateTypeDescriptor|DecimalTypeDescriptor|DoubleTypeDescriptor|FloatTypeDescriptor|IntegerTypeDescriptor|LongNVarcharTypeDescriptor|LongVarbinaryTypeDescriptor|LongVarcharTypeDescriptor|NCharTypeDescriptor|NClobTypeDescriptor|NumericTypeDescriptor|NVarcharTypeDescriptor|RealTypeDescriptor|SmallIntTypeDescriptor|SqlTypeDescriptorRegistry.ObjectSqlTypeDescriptor|TimestampTypeDescriptor|TimeTypeDescriptor|TinyIntTypeDescriptor|VarbinaryTypeDescriptor|VarcharTypeDescriptor)" />
</where>
</rule>
<rule id="hibernate4-00039">
<when>
<filecontent filename="{*}.{extension}" pattern="org.hibernate.dialect.Oracle12cDialect" as="config_files"/>
<javaclass references="javax.persistence.Entity" as="java_entities">
<location>ANNOTATION</location>
</javaclass>
<javaclass references="java.lang.Byte[]" from="java_entities" as="mappings">
<location>RETURN_TYPE</location>
</javaclass>
<javaclass references="byte[]" from="java_entities" as="mappings2">
<location>RETURN_TYPE</location>
</javaclass>
</when>
<perform>
<iteration over="mappings">
<hint title="Hibernate 5 - Oracle12cDialect maps byte[] and Byte[] to BLOB" effort="1" category-id="mandatory">
<message>
Previous versions of Hibernate have mapped `byte[]` and `Byte[]` to Oracle’s `LONG RAW` data type (via the JDBC `LONGVARBINARY` type). Oracle have deprecated the `LONG RAW` data type for many releases - possibly as far back as 8i.
Therefore it was decided to start having Hibernate map `byte[]` and `Byte[]` to `BLOB` for Oracle.
However, in the interest of backwards compatibility and not breaking existing applications it was also decided to limit this change to just the `Oracle12cDialect`. So starting in 5.1 applications using `Oracle12cDialect` and implicitly mapping `byte[]` and `Byte[]` values will start seeing those handled as `BLOB` data rather than `LONG RAW` data.
For existing applications that want to continue to use `Oracle12cDialect` and still continue to implicitly map `byte[]` and `Byte[]` attributes to `LONG RAW`, there is a new configuration setting you can use to enable that: `hibernate.dialect.oracle.prefer_longvarbinary`, which is `false `by default (map to `BLOB`).
</message>
<link href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#migration-from-503final-to-508final" title="Oracle Byte Array Mapping Changes"/>
<tag>Hibernate</tag>
</hint>
</iteration>
<iteration over="mappings2">
<hint title="Hibernate 5 - Oracle12cDialect maps byte[] and Byte[] to BLOB" effort="1" category-id="mandatory">
<message>
Previous versions of Hibernate have mapped `byte[]` and `Byte[]` to Oracle’s `LONG RAW` data type (via the JDBC `LONGVARBINARY` type). Oracle have deprecated the `LONG RAW` data type for many releases - possibly as far back as 8i.
Therefore it was decided to start having Hibernate map `byte[]` and `Byte[]` to `BLOB` for Oracle.
However, in the interest of backwards compatibility and not breaking existing applications it was also decided to limit this change to just the `Oracle12cDialect`. So starting in 5.1 applications using `Oracle12cDialect` and implicitly mapping `byte[]` and `Byte[]` values will start seeing those handled as `BLOB` data rather than `LONG RAW` data.
For existing applications that want to continue to use `Oracle12cDialect` and still continue to implicitly map `byte[]` and `Byte[]` attributes to `LONG RAW`, there is a new configuration setting you can use to enable that: `hibernate.dialect.oracle.prefer_longvarbinary`, which is `false `by default (map to `BLOB`).
</message>
<link href="https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#migration-from-503final-to-508final" title="Oracle Byte Array Mapping Changes"/>
<tag>Hibernate</tag>
</hint>
</iteration>
</perform>
<where param="extension">
<matches pattern="(java|properties|xml)"/>
</where>
</rule>
<!--https://issues.jboss.org/browse/WINDUPRULE-385-->
<rule id="hibernate4-00040">
<when>
<!-- check if the dialect is one of the special ones -->
<xmlfile matches="//s:property[@name='hibernate.dialect' and windup:matches(@value, 'org.hibernate.dialect.{param_dialects}')]" as="dialects_used">
<namespace prefix="s" uri="http://xmlns.jcp.org/xml/ns/persistence"/>
</xmlfile>
<!-- check if we are calling the setFirstResult method of one of the Query class -->
<javaclass references="{param_classes_setfirstresult}.setFirstResult(int)" >
<location>METHOD_CALL</location>
</javaclass>
</when>
<perform>
<iteration over="dialects_used">
<hint title="Hibernate 5.3 - Dialects not supporting Limit Offset" effort="1" category-id="mandatory">
<message>If the migration is from JBoss EAP 6 or Hibernate 4 then the dialect {param_dialects} does not support limit offset therefore as `setFirstResult` is used then `hibernate.legacy_limit_handler=true` is mandatory.</message>
<link title="Red Hat JBoss EAP 7.2: Migrating from Hibernate ORM 4.3 to Hibernate ORM 5.3" href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.2/html-single/migration_guide/#migrating_from_hibernate_5_1_to_5_3"/>
<tag>hibernate</tag>
</hint>
</iteration>
</perform>
<where param="param_classes_setfirstresult">
<matches pattern="javax.persistence.Query|org.hibernate.Query|org.hibernate.Criteria"/>
</where>
<where param="param_dialects">
<matches pattern="Cache71Dialect|DB2390Dialect|InformixDialect|IngresDialect|RDMSOS2200Dialect|SQLServerDialect|TimesTenDialect"/>
</where>
</rule>
</rules>
</ruleset>