/
celerio.xsd
2178 lines (2178 loc) · 102 KB
/
celerio.xsd
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
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.jaxio.com/schema/celerio" elementFormDefault="qualified" targetNamespace="http://www.jaxio.com/schema/celerio">
<xs:simpleType name="cascadeType">
<xs:restriction base="xs:string">
<xs:enumeration value="NONE"/>
<xs:enumeration value="ALL"/>
<xs:enumeration value="PERSIST"/>
<xs:enumeration value="MERGE"/>
<xs:enumeration value="REMOVE"/>
<xs:enumeration value="REFRESH"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="methodConvention">
<xs:restriction base="xs:string">
<xs:enumeration value="GET"/>
<xs:enumeration value="SET"/>
<xs:enumeration value="ADD"/>
<xs:enumeration value="WITH"/>
<xs:enumeration value="EDIT"/>
<xs:enumeration value="CONTAINS"/>
<xs:enumeration value="GET_BY"/>
<xs:enumeration value="DELETE_BY"/>
<xs:enumeration value="REMOVE"/>
<xs:enumeration value="REMOVE_ALL"/>
<xs:enumeration value="HAS"/>
<xs:enumeration value="GET_LOCALIZED"/>
<xs:enumeration value="RANDOM_GETTER"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="enumType">
<xs:restriction base="xs:string">
<xs:enumeration value="ORDINAL"/>
<xs:enumeration value="STRING"/>
<xs:enumeration value="CUSTOM"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="module">
<xs:restriction base="xs:string">
<xs:enumeration value="SPRING_3"/>
<xs:enumeration value="SPRING_MVC_3"/>
<xs:enumeration value="SPRING_DATA"/>
<xs:enumeration value="COPYABLE"/>
<xs:enumeration value="CHAR_PADDING"/>
<xs:enumeration value="PRIMEFACES"/>
<xs:enumeration value="CONTAINER_SECURITY"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="classType">
<xs:restriction base="xs:string">
<xs:enumeration value="model"/>
<xs:enumeration value="primaryKey"/>
<xs:enumeration value="dao"/>
<xs:enumeration value="formatter"/>
<xs:enumeration value="printer"/>
<xs:enumeration value="converter"/>
<xs:enumeration value="repository"/>
<xs:enumeration value="repositorySupport"/>
<xs:enumeration value="service"/>
<xs:enumeration value="serviceImpl"/>
<xs:enumeration value="serviceSupport"/>
<xs:enumeration value="validator"/>
<xs:enumeration value="enumModel"/>
<xs:enumeration value="enumItems"/>
<xs:enumeration value="modelGenerator"/>
<xs:enumeration value="controllerWithPathVariable"/>
<xs:enumeration value="restController"/>
<xs:enumeration value="entityForm"/>
<xs:enumeration value="context"/>
<xs:enumeration value="formService"/>
<xs:enumeration value="formValidator"/>
<xs:enumeration value="searchController"/>
<xs:enumeration value="webSupport"/>
<xs:enumeration value="webModel"/>
<xs:enumeration value="webModelConverter"/>
<xs:enumeration value="webController"/>
<xs:enumeration value="webConverter"/>
<xs:enumeration value="webModelItems"/>
<xs:enumeration value="webPermission"/>
<xs:enumeration value="seleniumEditPage"/>
<xs:enumeration value="seleniumSearchPage"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="generationType">
<xs:restriction base="xs:string">
<xs:enumeration value="TABLE"/>
<xs:enumeration value="SEQUENCE"/>
<xs:enumeration value="IDENTITY"/>
<xs:enumeration value="AUTO"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="cacheConcurrencyStrategy">
<xs:restriction base="xs:string">
<xs:enumeration value="NONE"/>
<xs:enumeration value="READ_ONLY"/>
<xs:enumeration value="NONSTRICT_READ_WRITE"/>
<xs:enumeration value="READ_WRITE"/>
<xs:enumeration value="TRANSACTIONAL"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="tableType">
<xs:restriction base="xs:string">
<xs:enumeration value="TABLE"/>
<xs:enumeration value="VIEW"/>
<xs:enumeration value="ALIAS"/>
<xs:enumeration value="SYNONYM"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="norms">
<xs:restriction base="xs:string">
<xs:enumeration value="YES"/>
<xs:enumeration value="NO"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="store">
<xs:restriction base="xs:string">
<xs:enumeration value="NO"/>
<xs:enumeration value="YES"/>
<xs:enumeration value="COMPRESS"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="wellKnownFolder">
<xs:restriction base="xs:string">
<xs:enumeration value="JAVA"/>
<xs:enumeration value="JAVA_TEST"/>
<xs:enumeration value="WEBAPP"/>
<xs:enumeration value="WEBINF"/>
<xs:enumeration value="VIEWS"/>
<xs:enumeration value="FLOWS"/>
<xs:enumeration value="RESOURCES"/>
<xs:enumeration value="SPRING"/>
<xs:enumeration value="LOCALIZATION"/>
<xs:enumeration value="DOMAIN_LOCALIZATION"/>
<xs:enumeration value="RESOURCES_TEST"/>
<xs:enumeration value="SPRING_TEST"/>
<xs:enumeration value="CELERIO_LOCAL_TEMPLATE"/>
<xs:enumeration value="COLLISION"/>
<xs:enumeration value="SQL"/>
<xs:enumeration value="CONFIG"/>
<xs:enumeration value="SITE"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="trueFalse">
<xs:restriction base="xs:string">
<xs:enumeration value="TRUE"/>
<xs:enumeration value="FALSE"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="analyze">
<xs:restriction base="xs:string">
<xs:enumeration value="YES"/>
<xs:enumeration value="NO"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fetchType">
<xs:restriction base="xs:string">
<xs:enumeration value="NONE"/>
<xs:enumeration value="LAZY"/>
<xs:enumeration value="EAGER"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="safeHtmlWhiteListType">
<xs:restriction base="xs:string">
<xs:enumeration value="NONE"/>
<xs:enumeration value="SIMPLE_TEXT"/>
<xs:enumeration value="BASIC"/>
<xs:enumeration value="BASIC_WITH_IMAGES"/>
<xs:enumeration value="RELAXED"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="inheritanceType">
<xs:restriction base="xs:string">
<xs:enumeration value="SINGLE_TABLE"/>
<xs:enumeration value="TABLE_PER_CLASS"/>
<xs:enumeration value="JOINED"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="jdbcType">
<xs:restriction base="xs:string">
<xs:enumeration value="ARRAY"/>
<xs:enumeration value="BIGINT"/>
<xs:enumeration value="BINARY"/>
<xs:enumeration value="BIT"/>
<xs:enumeration value="BLOB"/>
<xs:enumeration value="BOOLEAN"/>
<xs:enumeration value="CHAR"/>
<xs:enumeration value="CLOB"/>
<xs:enumeration value="DATALINK"/>
<xs:enumeration value="DATE"/>
<xs:enumeration value="DECIMAL"/>
<xs:enumeration value="DISTINCT"/>
<xs:enumeration value="DOUBLE"/>
<xs:enumeration value="FLOAT"/>
<xs:enumeration value="INTEGER"/>
<xs:enumeration value="JAVA_OBJECT"/>
<xs:enumeration value="LONGVARBINARY"/>
<xs:enumeration value="LONGVARCHAR"/>
<xs:enumeration value="NUMERIC"/>
<xs:enumeration value="OTHER"/>
<xs:enumeration value="REAL"/>
<xs:enumeration value="REF"/>
<xs:enumeration value="SMALLINT"/>
<xs:enumeration value="STRUCT"/>
<xs:enumeration value="TIME"/>
<xs:enumeration value="TIMESTAMP"/>
<xs:enumeration value="TINYINT"/>
<xs:enumeration value="VARBINARY"/>
<xs:enumeration value="VARCHAR"/>
<xs:enumeration value="ROW_ID"/>
<xs:enumeration value="LONGNVARCHAR"/>
<xs:enumeration value="NCHAR"/>
<xs:enumeration value="NCLOB"/>
<xs:enumeration value="NVARCHAR"/>
<xs:enumeration value="NULL"/>
<xs:enumeration value="SQLXML"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="associationDirection">
<xs:restriction base="xs:string">
<xs:enumeration value="UNIDIRECTIONAL"/>
<xs:enumeration value="BIDIRECTIONAL"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="formatterEnum">
<xs:restriction base="xs:string">
<xs:enumeration value="USE_FORMATTER_FILE"/>
<xs:enumeration value="USE_ECLIPSE_DEFAULT"/>
<xs:enumeration value="NONE"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="generatedPackage">
<xs:restriction base="xs:string">
<xs:enumeration value="Audit"/>
<xs:enumeration value="Configuration"/>
<xs:enumeration value="Context"/>
<xs:enumeration value="Converter"/>
<xs:enumeration value="Dao"/>
<xs:enumeration value="DaoListener"/>
<xs:enumeration value="DaoSupport"/>
<xs:enumeration value="EmailService"/>
<xs:enumeration value="EnumItems"/>
<xs:enumeration value="EnumModel"/>
<xs:enumeration value="EnumModelSupport"/>
<xs:enumeration value="Formatter"/>
<xs:enumeration value="FormatterSupport"/>
<xs:enumeration value="Hibernate"/>
<xs:enumeration value="HibernateListener"/>
<xs:enumeration value="HibernateSupport"/>
<xs:enumeration value="Model"/>
<xs:enumeration value="ModelSupport"/>
<xs:enumeration value="Printer"/>
<xs:enumeration value="PrinterSupport"/>
<xs:enumeration value="Random"/>
<xs:enumeration value="Repository"/>
<xs:enumeration value="RepositorySupport"/>
<xs:enumeration value="Root"/>
<xs:enumeration value="Search"/>
<xs:enumeration value="Security"/>
<xs:enumeration value="Service"/>
<xs:enumeration value="ServiceImpl"/>
<xs:enumeration value="ServiceSupport"/>
<xs:enumeration value="Util"/>
<xs:enumeration value="Validation"/>
<xs:enumeration value="ValidationImpl"/>
<xs:enumeration value="RestController"/>
<xs:enumeration value="Web"/>
<xs:enumeration value="WebAction"/>
<xs:enumeration value="WebComponent"/>
<xs:enumeration value="WebConfiguration"/>
<xs:enumeration value="WebContext"/>
<xs:enumeration value="WebController"/>
<xs:enumeration value="WebConversation"/>
<xs:enumeration value="WebConversationComponent"/>
<xs:enumeration value="WebConverter"/>
<xs:enumeration value="WebConverterSupport"/>
<xs:enumeration value="WebEl"/>
<xs:enumeration value="WebFaces"/>
<xs:enumeration value="WebFilter"/>
<xs:enumeration value="WebFlow"/>
<xs:enumeration value="WebInterceptor"/>
<xs:enumeration value="WebListener"/>
<xs:enumeration value="WebModel"/>
<xs:enumeration value="WebModelConverter"/>
<xs:enumeration value="WebModelEntityForm"/>
<xs:enumeration value="WebModelItems"/>
<xs:enumeration value="WebModelSearchForm"/>
<xs:enumeration value="WebModelSupport"/>
<xs:enumeration value="WebModelValidator"/>
<xs:enumeration value="WebPermission"/>
<xs:enumeration value="WebPermissionSupport"/>
<xs:enumeration value="WebSecurity"/>
<xs:enumeration value="WebService"/>
<xs:enumeration value="WebServlet"/>
<xs:enumeration value="WebUi"/>
<xs:enumeration value="WebUtil"/>
<xs:enumeration value="WebValidation"/>
<xs:enumeration value="WebValidator"/>
<xs:enumeration value="Selenium"/>
<xs:enumeration value="SeleniumPage"/>
<xs:enumeration value="SeleniumSupport"/>
<xs:enumeration value="SeleniumElement"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="termVector">
<xs:restriction base="xs:string">
<xs:enumeration value="YES"/>
<xs:enumeration value="NO"/>
<xs:enumeration value="WITH_OFFSETS"/>
<xs:enumeration value="WITH_POSITIONS"/>
<xs:enumeration value="WITH_POSITION_OFFSETS"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="mappedType">
<xs:restriction base="xs:string">
<xs:enumeration value="M_ARRAY"/>
<xs:enumeration value="M_BIGDECIMAL"/>
<xs:enumeration value="M_BIGINTEGER"/>
<xs:enumeration value="M_BOOLEAN"/>
<xs:enumeration value="M_BYTES"/>
<xs:enumeration value="M_CLOB"/>
<xs:enumeration value="M_DOUBLE"/>
<xs:enumeration value="M_FLOAT"/>
<xs:enumeration value="M_BLOB"/>
<xs:enumeration value="M_INTEGER"/>
<xs:enumeration value="M_LONG"/>
<xs:enumeration value="M_REF"/>
<xs:enumeration value="M_STRING"/>
<xs:enumeration value="M_CHAR"/>
<xs:enumeration value="M_BYTE"/>
<xs:enumeration value="M_JODA_LOCALDATE"/>
<xs:enumeration value="M_JODA_LOCALDATETIME"/>
<xs:enumeration value="M_SQLDATE"/>
<xs:enumeration value="M_UTILDATE"/>
<xs:enumeration value="M_TIME"/>
<xs:enumeration value="M_TIMESTAMP"/>
<xs:enumeration value="M_URL"/>
<xs:enumeration value="M_OBJECT"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="collectionType">
<xs:restriction base="xs:string">
<xs:enumeration value="ArrayList"/>
<xs:enumeration value="HashSet"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="genericGenerator">
<xs:sequence>
<xs:element name="parameters" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="tns:metaAttribute" name="parameter" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="name"/>
<xs:attribute type="xs:string" name="strategy"/>
</xs:complexType>
<xs:complexType name="methodConventionOverride">
<xs:annotation>
<xs:documentation>change the prefix/suffix conventions for a given method</xs:documentation>
</xs:annotation>
<xs:sequence/>
<xs:attribute type="tns:methodConvention" use="required" name="methodConvention">
<xs:annotation>
<xs:documentation><![CDATA[Method type to override<br> Example: GET_LOCALIZED]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="prefix">
<xs:annotation>
<xs:documentation><![CDATA[Override the prefix for this methodConvention<br> Example: get]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="suffix">
<xs:annotation>
<xs:documentation><![CDATA[Override the suffix for this methodConvention<br> Example: Localized]]></xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="restriction">
<xs:sequence>
<xs:element name="classTypes" minOccurs="0">
<xs:annotation>
<xs:documentation>Restrict the generation to the following classTypes</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:classType" name="classType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="wellKnownFolders" minOccurs="0">
<xs:annotation>
<xs:documentation>Restrict the generation to the following wellKnownFolders</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:wellKnownFolder" name="wellKnownFolder" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="generatedPackages" minOccurs="0">
<xs:annotation>
<xs:documentation>Restrict the generation to the following generatedPackages</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:generatedPackage" name="generatedPackage" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="manyToManyConfig">
<xs:annotation>
<xs:documentation>The ManyToManyConfig allows you to fine tune your @ManyToMany association. The ManyToManyConfig element must be a child of a columnConfig element referencing (i.e foreignkey) the entity that is the target of this @ManyToMany association. The columnConfig necessarily belongs to a 'join entity'.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="labels" minOccurs="0">
<xs:annotation>
<xs:documentation>The labels for this association.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:label" name="label" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="cascades" minOccurs="0">
<xs:annotation>
<xs:documentation>The list of JPA cascade types for the this association.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:cascade" name="cascade" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element type="tns:cacheConfig" name="cacheConfig" minOccurs="0">
<xs:annotation>
<xs:documentation>The 2d level cache configuration for this association.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element type="tns:associationAction" name="associationAction" minOccurs="0">
<xs:annotation>
<xs:documentation>Configure which actions should or should not be generated for this association in the front end layer.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="var">
<xs:annotation>
<xs:documentation>The variable name for the collection. It should be plural, for example: 'children'. Please configure also the elementVar as the singular of this var.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="elementVar">
<xs:annotation>
<xs:documentation>The variable name for an element of the collection. For example, if the variable name for the collection is 'children', the elementVar should be child. This elementVar will be used to generate convenient methods for the collection, such as an adder method addChild(YourType child).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="tns:fetchType" name="fetch">
<xs:annotation>
<xs:documentation>The JPA fetch type for this association. Use NONE if you do not want any fetchType to be set.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="orderBy">
<xs:annotation>
<xs:documentation><![CDATA[Specifies the ordering of the elements. If not null, the JPA <code>@OrderBy</code> annotation is used. Example: orderBy="birthdate DESC" will generate]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="targetEntityName">
<xs:annotation>
<xs:documentation>If the target entity is part of a SINGLE_TABLE inheritance hierarchy, you must set name of the target entity as Celerio cannot guess it.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="celerioTemplateContext">
<xs:sequence>
<xs:element name="entityContextProperties" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="tns:entityContextProperty" name="entityContextProperty" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="extendsClass">
<xs:sequence/>
<xs:attribute type="xs:string" use="required" name="fullType">
<xs:annotation>
<xs:documentation>The full class name that this entity extends. For example 'com.mycompany.MyClass'. This is taken into account only if the entity is a root entity.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="entityConfig">
<xs:annotation>
<xs:documentation>Describes an entity config</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element type="tns:cacheConfig" name="cacheConfig" minOccurs="0">
<xs:annotation>
<xs:documentation>The 2d level cache configuration for this entity.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="usages" minOccurs="0">
<xs:annotation>
<xs:documentation>Free parameters. Not used internally.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="usage" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="labels" minOccurs="0">
<xs:annotation>
<xs:documentation>The labels for this entity. They appear in the entity properties file located under 'src/main/resources/localization/domain'.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:label" name="label" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element type="tns:inheritance" name="inheritance" minOccurs="0">
<xs:annotation>
<xs:documentation>Inheritance configuration.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element type="tns:extendsClass" name="extendsClass" minOccurs="0">
<xs:annotation>
<xs:documentation>Specify the base class that this entity should extends. Only for root entity.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="implementsInterfaces" minOccurs="0">
<xs:annotation>
<xs:documentation>Specify the extra interfaces that this entity should implement.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:implementsInterface" name="implementsInterface" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="metaAttributes" minOccurs="0">
<xs:annotation>
<xs:documentation>Meta attributes are free form key value pairs.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:metaAttribute" name="metaAttribute" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="columnConfigs" minOccurs="0">
<xs:annotation>
<xs:documentation>This entity's columnConfigs. Note that for entities without inheritance or for entities with a JOIN inheritance strategy, if a column is present in the table's meta data but has no corresponding entityConfig in this list, then an entityConfig is created by default and added automatically to this list.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:columnConfig" name="columnConfig" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="customAnnotations" minOccurs="0">
<xs:annotation>
<xs:documentation>List of custom annotations to apply on this entity.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:customAnnotation" name="customAnnotation" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="entityName">
<xs:annotation>
<xs:documentation><![CDATA[The JPA entity's type. <br> For example, entityName="BankAccount". <br> By default, the entity name is deduced from the table name. <br> For example: 'bank_account' will become 'BankAccount';]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="sequenceName">
<xs:annotation>
<xs:documentation>Allows you to specify the sequence name to use in order to generate this entity pk value. When a sequence name is provided the corresponding @SequenceGenerator and @GeneratedValue annotations are added to the primary key attribute.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="tableName">
<xs:annotation>
<xs:documentation>The underlying table name for the entity. If not set, inheritance must be configured.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" name="indexed">
<xs:annotation>
<xs:documentation>Should this entity be annotated with hibernate search @Indexed annotation? False by default, unless if one columnConfig is marked as indexed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" name="middleTable">
<xs:annotation>
<xs:documentation>By convention a table is considered as a many-to-many middle table if it has two foreign keys and no other regular columns. This attribute allows you to consider this table as a middle table, even if it has other regular columns. A regular column is a column that is neither a primary key nor a version (i.e. optimistic lock).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="comment">
<xs:annotation>
<xs:documentation>The comment that will be inserted in this entity's JavaDoc.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="rootPackage">
<xs:annotation>
<xs:documentation><![CDATA[Allows you to override the default root package.<br> Example: com.yourcompany]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="subPackage">
<xs:annotation>
<xs:documentation><![CDATA[When you define a sub-package, the resulting entity's package becomes "<rootPackage>.domain.<subPackage>" instead of "<rootPackage>.domain". There is no sub-package by default.]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="label">
<xs:annotation>
<xs:documentation>The base label for this entity. You may either set it here or in a nested labels/label.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="tns:associationDirection" name="associationDirection">
<xs:annotation>
<xs:documentation>It is pertinent only if this entity's table plays the role of a middle table in a many-to-many association. In that case you can use this parameter to set the many-to-many association direction.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="tns:collectionType" name="collectionType">
<xs:annotation>
<xs:documentation>You can override the default collection type for this entity</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:element type="tns:celerio" name="celerio"/>
<xs:complexType name="entityContextProperty">
<xs:annotation>
<xs:documentation>Used to introduce a new 'namer' property on each Celerio's entity context instance. Entity namer properties are convenient when writing template for classes that support entities, for example: Controller, Service, Dao, Validator etc... example: var name is obtained with ${entity.property.var} and has the value "prefixEntityNameSuffix".</xs:documentation>
</xs:annotation>
<xs:sequence/>
<xs:attribute type="xs:string" name="property">
<xs:annotation>
<xs:documentation>The property name.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="rootPackage">
<xs:annotation>
<xs:documentation>The root package. Defaults to the globally defined root package.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="subPackage">
<xs:annotation>
<xs:documentation>The sub package. For example: "security", "web.security". No defaults.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="prefix">
<xs:annotation>
<xs:documentation>Prefix prepended to the entity name.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="suffix">
<xs:annotation>
<xs:documentation>Prefix appended to the entity name.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="metadata">
<xs:sequence>
<xs:element type="tns:jdbcConnectivity" name="jdbcConnectivity" minOccurs="0"/>
<xs:element type="tns:databaseInfo" name="databaseInfo" minOccurs="0"/>
<xs:element name="tables" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="tns:table" name="table" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="index">
<xs:annotation>
<xs:documentation>Description of the given table's indices and statistics</xs:documentation>
</xs:annotation>
<xs:sequence/>
<xs:attribute type="xs:string" use="required" name="columnName">
<xs:annotation>
<xs:documentation>Column name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" use="required" name="indexName">
<xs:annotation>
<xs:documentation>Index name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" use="required" name="nonUnique">
<xs:annotation>
<xs:documentation>Can index values be non-unique</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:element type="tns:metadata" name="metadata"/>
<xs:complexType name="classTypeOverride">
<xs:annotation>
<xs:documentation>Override the class conventions such as GeneratedPackage, suffix and prefixes</xs:documentation>
</xs:annotation>
<xs:sequence/>
<xs:attribute type="tns:classType" use="required" name="classType">
<xs:annotation>
<xs:documentation>The ClassType to override</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="prefix">
<xs:annotation>
<xs:documentation>Override the prefix for this ClassType</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="suffix">
<xs:annotation>
<xs:documentation>Override the suffix for this ClassType</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="tns:generatedPackage" name="generatedPackage">
<xs:annotation>
<xs:documentation>Override the GeneratedPackage for this ClassType</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="eclipseFormatter">
<xs:sequence/>
<xs:attribute type="tns:formatterEnum" use="required" name="formatterChoice"/>
<xs:attribute type="xs:string" name="formatterFile"/>
</xs:complexType>
<xs:complexType name="numberMapping">
<xs:annotation>
<xs:documentation>Global rule to map columns whose JDBC TYPE correspond to a number to a Java type.</xs:documentation>
</xs:annotation>
<xs:sequence/>
<xs:attribute type="tns:mappedType" name="mappedType">
<xs:annotation>
<xs:documentation>The mapped type to use when both the column size and decimal digit value fall into the specified ranges.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:int" name="columnSizeMin">
<xs:annotation>
<xs:documentation>The minimum (inclusive) column size to fall into this mapping range.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:int" name="columnSizeMax">
<xs:annotation>
<xs:documentation>The maximum (exclusive) column size to fall into this mapping range.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:int" name="columnDecimalDigitsMin">
<xs:annotation>
<xs:documentation>The minimum (inclusive) column decimal digit value to fall into this mapping range.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:int" name="columnDecimalDigitsMax">
<xs:annotation>
<xs:documentation>The maximum (exclusive) column decimal digit value to fall into this mapping range.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="associationAction">
<xs:sequence/>
<xs:attribute type="xs:boolean" name="create">
<xs:annotation>
<xs:documentation>Generate code in order to create a new target entity from the source entity main edit page.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" name="edit">
<xs:annotation>
<xs:documentation>Generate code in order to edit a target entity from the source entity main edit page.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" name="view">
<xs:annotation>
<xs:documentation>Generate code in order to view a target entity from the source entity main edit page.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" name="select">
<xs:annotation>
<xs:documentation>Generate code in order to select an existing target entity from the source entity main edit page. Note: it does not apply to one-to-many association.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" name="autoComplete">
<xs:annotation>
<xs:documentation>Generate code in order to select an existing target entity, using an autoComplete component, from the source entity main edit page. Note: it does not apply to one-to-many association.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" name="remove">
<xs:annotation>
<xs:documentation>Generate code in order to remove a target entity from the source entity main edit page.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="pattern">
<xs:annotation>
<xs:documentation>A pattern is a structure to help handling inclusion and exclusion of resources</xs:documentation>
</xs:annotation>
<xs:sequence/>
<xs:attribute type="xs:string" use="required" name="pattern">
<xs:annotation>
<xs:documentation><![CDATA[if the pattern contains '?', '*', '**' the matching will be done using an ant matcher, otherwise it will do a equalsIgnoreCase <ul> <li>? matches one character</li> <li>* matches zero or more characters</li> <li>** matches zero or more 'directories' in a path</li> </ul> Some examples: <ul> <li>com/t?st.jsp - matches com/test.jsp but also com/tast.jsp or com/txst.jsp</li> <li>com/yourcompany/**\/*.jsp - matches all .jsp files in the com/yourcompany directory</li> </ul>]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" use="required" name="include">
<xs:annotation>
<xs:documentation>True is is an inclusion pattern, false for an exclusion ?</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="importedKey">
<xs:annotation>
<xs:documentation>Description of the primary key columns that are referenced by a table's foreign key columns (the primary keys imported by a table).</xs:documentation>
</xs:annotation>
<xs:sequence/>
<xs:attribute type="xs:string" use="required" name="fkColumnName">
<xs:annotation>
<xs:documentation>Foreign key column name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" use="required" name="fkName">
<xs:annotation>
<xs:documentation>Foreign key name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" use="required" name="pkColumnName">
<xs:annotation>
<xs:documentation>Primary key column name being imported</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" use="required" name="pkTableName">
<xs:annotation>
<xs:documentation>Primary key table name being imported</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="pack">
<xs:annotation>
<xs:documentation>A pack is the aggregation of templates and static files that produces functionalities.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="filenames" minOccurs="0">
<xs:annotation>
<xs:documentation>Control the generation output by filtering the generated files based on their filename.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:pattern" name="filename" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="templates" minOccurs="0">
<xs:annotation>
<xs:documentation>Control the generation output by filtering the execution of the generation templates based on their filename.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:pattern" name="template" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" use="required" name="name">
<xs:annotation>
<xs:documentation>Name of the pack</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="path">
<xs:annotation>
<xs:documentation><![CDATA[Path of the pack, it should be relative to the project, or absolute.<br> Example: src/main/packs/my-own-pack/]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" use="required" name="enable">
<xs:annotation>
<xs:documentation>Should this pack be used ?</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:int" name="order">
<xs:annotation>
<xs:documentation>Specify the pack order, its main interest is when two packs produce the same artifacts.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="jodaTime">
<xs:annotation>
<xs:documentation>Configure the Hibernate type to use when mapping an attribute whose type is LocalDate or LocalDateTime.</xs:documentation>
</xs:annotation>
<xs:sequence/>
<xs:attribute type="xs:string" name="localDateHibernateType">
<xs:annotation>
<xs:documentation>The Hibernate type to use for Joda LocalDate. Defaults to "org.jadira.usertype.dateandtime.joda.PersistentLocalDate". You may set it instead to "org.joda.time.contrib.hibernate.PersistentLocalDate" if you use hibernate 3.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="localDateTimeHibernateType">
<xs:annotation>
<xs:documentation>The Hibernate type to use for Joda LocalDateTime. Defaults to "org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime". You may set it instead to "org.joda.time.contrib.hibernate.PersistentLocalDateTime" if you use hibernate 3.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="oneToOneConfig">
<xs:sequence>
<xs:element name="labels" minOccurs="0">
<xs:annotation>
<xs:documentation>The labels for this association.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:label" name="label" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="cascades" minOccurs="0">
<xs:annotation>
<xs:documentation>The list of JPA cascade types for the this association.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:cascade" name="cascade" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element type="tns:cacheConfig" name="cacheConfig" minOccurs="0">
<xs:annotation>
<xs:documentation>The 2d level cache configuration for this association.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element type="tns:associationAction" name="associationAction" minOccurs="0">
<xs:annotation>
<xs:documentation>Configure which actions should or should not be generated for this association in the front end layer.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="var">
<xs:annotation>
<xs:documentation>The variable name for association. It should be singular, for example: 'parent'.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="tns:fetchType" name="fetch">
<xs:annotation>
<xs:documentation>The JPA fetch type for this association. Use NONE if you do not want any fetchType to be set.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="targetEntityName">
<xs:annotation>
<xs:documentation>If the target entity is part of a SINGLE_TABLE inheritance hierarchy, you must set name of the target entity as Celerio cannot guess it.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="enumValue">
<xs:sequence>
<xs:element name="comments" minOccurs="0">
<xs:annotation>
<xs:documentation>Set comments for this enum value.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="comment" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="labels" minOccurs="0">
<xs:annotation>
<xs:documentation>The labels for this enum value. They appear in the enum properties file located under 'src/main/resources/localization/domain'.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:label" name="label" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="name">
<xs:annotation>
<xs:documentation>The enum constant that defines an instance of the enum type. Example: For a Civility enum, this could be MISS or MISTER.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="value">
<xs:annotation>
<xs:documentation>The value really stored in the database. Only applies if the enumConfig's type is CUSTOM. Note that the mapping leverages Jadira as it is not supported natively by JPA.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="label">
<xs:annotation>
<xs:documentation>The base label for this enum value. You may either set it here or in a nested labels/label.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="celerio">
<xs:sequence>
<xs:element name="includes" minOccurs="0">
<xs:annotation>
<xs:documentation>For large projects, you can split the content of the entityConfigs tag into multiple files and 'include' the files here.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element type="tns:include" name="include" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element type="tns:configuration" name="configuration" minOccurs="0">
<xs:annotation>
<xs:documentation>Configure the celerio generator, such as conventions, jdbc connectivity, and other</xs:documentation>
</xs:annotation>