forked from hibernate/hibernate-orm
/
example_mappings.po
1264 lines (1232 loc) · 42.4 KB
/
example_mappings.po
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
# translation of example_mappings.po to French
# Myriam Malga <mmalga@redhat.com>, 2007.
# Xi HUANG <xhuang@redhat.com>, 2007.
# Corina Roe <croe@redhat.com>, 2009.
# translation of Collection_Mapping.po to
msgid ""
msgstr ""
"Project-Id-Version: example_mappings\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2010-02-10T07:25:35\n"
"PO-Revision-Date: 2009-11-11 09:19+1000\n"
"Last-Translator: Corina Roe <croe@redhat.com>\n"
"Language-Team: French <i18@redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#, no-c-format
msgid "Example: Various Mappings"
msgstr "Exemple : quelques mappages"
#. Tag: para
#, no-c-format
msgid "This chapters explores some more complex association mappings."
msgstr "Ce chapitre montre quelques mappages plus complexes. "
#. Tag: title
#, no-c-format
msgid "Employer/Employee"
msgstr "Employeur/Employé (Employer/Employee)"
#. Tag: para
#, no-c-format
msgid ""
"The following model of the relationship between <literal>Employer</literal> "
"and <literal>Employee</literal> uses an entity class (<literal>Employment</"
"literal>) to represent the association. You can do this when there might be "
"more than one period of employment for the same two parties. Components are "
"used to model monetary values and employee names."
msgstr ""
"Le modèle suivant de relation entre <literal>Employer</literal> et "
"<literal>Employee</literal> utilise une vraie classe entité "
"(<literal>Employment</literal>) pour représenter l'association. La raison "
"étant qu'il peut y avoir plus d'une période d'emploi pour les deux mêmes "
"parties. Des composants sont utilisés pour modéliser les valeurs monétaires "
"et les noms des employés. "
#. Tag: para
#, no-c-format
msgid "Here is a possible mapping document:"
msgstr "Voici un document de mappage possible : "
#. Tag: para
#, no-c-format
msgid "Here is the table schema generated by <literal>SchemaExport</literal>."
msgstr ""
"Et voici le schéma des tables générées par <literal>SchemaExport</literal>. "
#. Tag: title
#, no-c-format
msgid "Author/Work"
msgstr "Auteur/Travail "
#. Tag: para
#, no-c-format
msgid ""
"Consider the following model of the relationships between <literal>Work</"
"literal>, <literal>Author</literal> and <literal>Person</literal>. In the "
"example, the relationship between <literal>Work</literal> and "
"<literal>Author</literal> is represented as a many-to-many association and "
"the relationship between <literal>Author</literal> and <literal>Person</"
"literal> is represented as one-to-one association. Another possibility would "
"be to have <literal>Author</literal> extend <literal>Person</literal>."
msgstr ""
"Examinons le modèle suivant de la relation entre <literal>Work</literal>, "
"<literal>Author</literal> et <literal>Person</literal>. Nous représentons la "
"relation entre <literal>Work</literal> et <literal>Author</literal> comme "
"une association plusieurs-à-plusieurs. Nous avons choisi de représenter la "
"relation entre <literal>Author</literal> et <literal>Person</literal> comme "
"une association un-à-un. Une autre possibilité aurait été que "
"<literal>Author</literal> étende <literal>Person</literal>. "
#. Tag: para
#, no-c-format
msgid ""
"The following mapping document correctly represents these relationships:"
msgstr "Le mappage suivant représente exactement ces relations :"
#. Tag: para
#, no-c-format
msgid ""
"There are four tables in this mapping: <literal>works</literal>, "
"<literal>authors</literal> and <literal>persons</literal> hold work, author "
"and person data respectively. <literal>author_work</literal> is an "
"association table linking authors to works. Here is the table schema, as "
"generated by <literal>SchemaExport</literal>:"
msgstr ""
"Il y a quatre tables dans ce mappage. <literal>works</literal>, "
"<literal>authors</literal> et <literal>persons</literal> qui contiennent "
"respectivement les données de work, author et person. <literal>author_work</"
"literal> est une table d'association qui lie authors à works. Voici le "
"schéma de tables, généré par <literal>SchemaExport</literal> :"
#. Tag: title
#, no-c-format
msgid "Customer/Order/Product"
msgstr "Client/Commande/Produit "
#. Tag: para
#, no-c-format
msgid ""
"In this section we consider a model of the relationships between "
"<literal>Customer</literal>, <literal>Order</literal>, <literal>Line Item</"
"literal> and <literal>Product</literal>. There is a one-to-many association "
"between <literal>Customer</literal> and <literal>Order</literal>, but how "
"can you represent <literal>Order</literal> / <literal>LineItem</literal> / "
"<literal>Product</literal>? In the example, <literal>LineItem</literal> is "
"mapped as an association class representing the many-to-many association "
"between <literal>Order</literal> and <literal>Product</literal>. In "
"Hibernate this is called a composite element."
msgstr ""
"Imaginons maintenant le modèle de relations entre <literal>Customer</"
"literal>, <literal>Order</literal>, <literal>LineItem</literal> et "
"<literal>Product</literal>. Il y a une association un-à-plusieurs entre "
"<literal>Customer</literal> et <literal>Order</literal>, mais comment devons "
"nous représenter <literal>Order</literal> / <literal>LineItem</literal> / "
"<literal>Product</literal> ? J'ai choisi de mapper <literal>LineItem</"
"literal> comme une classe d'association représentant l'association plusieurs-"
"à-plusieurs entre <literal>Order</literal> et <literal>Product</literal>. "
"Dans Hibernate, on appelle cela un élément composite. "
#. Tag: para
#, no-c-format
msgid "The mapping document will look like this:"
msgstr "Le document de mappage : "
#. Tag: para
#, no-c-format
msgid ""
"<literal>customers</literal>, <literal>orders</literal>, "
"<literal>line_items</literal> and <literal>products</literal> hold customer, "
"order, order line item and product data respectively. <literal>line_items</"
"literal> also acts as an association table linking orders with products."
msgstr ""
"<literal>customers</literal>, <literal>orders</literal>, "
"<literal>line_items</literal> et <literal>products</literal> contiennent les "
"données de customer, order, order line item et product. <literal>line_items</"
"literal> est aussi la table d'association liant orders à products. "
#. Tag: title
#, no-c-format
msgid "Miscellaneous example mappings"
msgstr "Divers exemples de mappages"
#. Tag: para
#, no-c-format
msgid ""
"These examples are available from the Hibernate test suite. You will find "
"many other useful example mappings there by searching in the <literal>test</"
"literal> folder of the Hibernate distribution."
msgstr ""
"Ces exemples sont tous pris de la suite de tests de Hibernate. Vous en "
"trouverez beaucoup d'autres. Regardez dans le dossier <literal>test</"
"literal> de la distribution Hibernate. "
#. Tag: title
#, no-c-format
msgid "\"Typed\" one-to-one association"
msgstr "\"Typed\" association un-à-un"
#. Tag: title
#, no-c-format
msgid "Composite key example"
msgstr "Exemple de clef composée"
#. Tag: title
#, no-c-format
msgid "Many-to-many with shared composite key attribute"
msgstr "Plusieurs-à-plusieurs avec un attribut de clef composée partagée"
#. Tag: title
#, no-c-format
msgid "Content based discrimination"
msgstr "Contenu basé sur une discrimination"
#. Tag: title
#, no-c-format
msgid "Associations on alternate keys"
msgstr "Associations sur des clés alternées"
#~ msgid ""
#~ "<![CDATA[<hibernate-mapping>\n"
#~ " \n"
#~ " <class name=\"Employer\" table=\"employers\">\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"sequence\">\n"
#~ " <param name=\"sequence\">employer_id_seq</param>\n"
#~ " </generator>\n"
#~ " </id>\n"
#~ " <property name=\"name\"/>\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
#~ "\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"sequence\">\n"
#~ " <param name=\"sequence\">employment_id_seq</param>\n"
#~ " </generator>\n"
#~ " </id>\n"
#~ " <property name=\"startDate\" column=\"start_date\"/>\n"
#~ " <property name=\"endDate\" column=\"end_date\"/>\n"
#~ "\n"
#~ " <component name=\"hourlyRate\" class=\"MonetaryAmount\">\n"
#~ " <property name=\"amount\">\n"
#~ " <column name=\"hourly_rate\" sql-type=\"NUMERIC(12, 2)\"/"
#~ ">\n"
#~ " </property>\n"
#~ " <property name=\"currency\" length=\"12\"/>\n"
#~ " </component>\n"
#~ "\n"
#~ " <many-to-one name=\"employer\" column=\"employer_id\" not-null="
#~ "\"true\"/>\n"
#~ " <many-to-one name=\"employee\" column=\"employee_id\" not-null="
#~ "\"true\"/>\n"
#~ "\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Employee\" table=\"employees\">\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"sequence\">\n"
#~ " <param name=\"sequence\">employee_id_seq</param>\n"
#~ " </generator>\n"
#~ " </id>\n"
#~ " <property name=\"taxfileNumber\"/>\n"
#~ " <component name=\"name\" class=\"Name\">\n"
#~ " <property name=\"firstName\"/>\n"
#~ " <property name=\"initial\"/>\n"
#~ " <property name=\"lastName\"/>\n"
#~ " </component>\n"
#~ " </class>\n"
#~ "\n"
#~ "</hibernate-mapping>]]>"
#~ msgstr ""
#~ "<![CDATA[<hibernate-mapping>\n"
#~ " \n"
#~ " <class name=\"Employer\" table=\"employers\">\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"sequence\">\n"
#~ " <param name=\"sequence\">employer_id_seq</param>\n"
#~ " </generator>\n"
#~ " </id>\n"
#~ " <property name=\"name\"/>\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Employment\" table=\"employment_periods\">\n"
#~ "\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"sequence\">\n"
#~ " <param name=\"sequence\">employment_id_seq</param>\n"
#~ " </generator>\n"
#~ " </id>\n"
#~ " <property name=\"startDate\" column=\"start_date\"/>\n"
#~ " <property name=\"endDate\" column=\"end_date\"/>\n"
#~ "\n"
#~ " <component name=\"hourlyRate\" class=\"MonetaryAmount\">\n"
#~ " <property name=\"amount\">\n"
#~ " <column name=\"hourly_rate\" sql-type=\"NUMERIC(12, 2)\"/"
#~ ">\n"
#~ " </property>\n"
#~ " <property name=\"currency\" length=\"12\"/>\n"
#~ " </component>\n"
#~ "\n"
#~ " <many-to-one name=\"employer\" column=\"employer_id\" not-null="
#~ "\"true\"/>\n"
#~ " <many-to-one name=\"employee\" column=\"employee_id\" not-null="
#~ "\"true\"/>\n"
#~ "\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Employee\" table=\"employees\">\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"sequence\">\n"
#~ " <param name=\"sequence\">employee_id_seq</param>\n"
#~ " </generator>\n"
#~ " </id>\n"
#~ " <property name=\"taxfileNumber\"/>\n"
#~ " <component name=\"name\" class=\"Name\">\n"
#~ " <property name=\"firstName\"/>\n"
#~ " <property name=\"initial\"/>\n"
#~ " <property name=\"lastName\"/>\n"
#~ " </component>\n"
#~ " </class>\n"
#~ "\n"
#~ "</hibernate-mapping>]]>"
#~ msgid ""
#~ "<![CDATA[create table employers (\n"
#~ " id BIGINT not null, \n"
#~ " name VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table employment_periods (\n"
#~ " id BIGINT not null,\n"
#~ " hourly_rate NUMERIC(12, 2),\n"
#~ " currency VARCHAR(12), \n"
#~ " employee_id BIGINT not null, \n"
#~ " employer_id BIGINT not null, \n"
#~ " end_date TIMESTAMP, \n"
#~ " start_date TIMESTAMP, \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table employees (\n"
#~ " id BIGINT not null, \n"
#~ " firstName VARCHAR(255), \n"
#~ " initial CHAR(1), \n"
#~ " lastName VARCHAR(255), \n"
#~ " taxfileNumber VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "alter table employment_periods \n"
#~ " add constraint employment_periodsFK0 foreign key (employer_id) "
#~ "references employers\n"
#~ "alter table employment_periods \n"
#~ " add constraint employment_periodsFK1 foreign key (employee_id) "
#~ "references employees\n"
#~ "create sequence employee_id_seq\n"
#~ "create sequence employment_id_seq\n"
#~ "create sequence employer_id_seq]]>"
#~ msgstr ""
#~ "<![CDATA[create table employers (\n"
#~ " id BIGINT not null, \n"
#~ " name VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table employment_periods (\n"
#~ " id BIGINT not null,\n"
#~ " hourly_rate NUMERIC(12, 2),\n"
#~ " currency VARCHAR(12), \n"
#~ " employee_id BIGINT not null, \n"
#~ " employer_id BIGINT not null, \n"
#~ " end_date TIMESTAMP, \n"
#~ " start_date TIMESTAMP, \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table employees (\n"
#~ " id BIGINT not null, \n"
#~ " firstName VARCHAR(255), \n"
#~ " initial CHAR(1), \n"
#~ " lastName VARCHAR(255), \n"
#~ " taxfileNumber VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "alter table employment_periods \n"
#~ " add constraint employment_periodsFK0 foreign key (employer_id) "
#~ "references employers\n"
#~ "alter table employment_periods \n"
#~ " add constraint employment_periodsFK1 foreign key (employee_id) "
#~ "references employees\n"
#~ "create sequence employee_id_seq\n"
#~ "create sequence employment_id_seq\n"
#~ "create sequence employer_id_seq]]>"
#~ msgid ""
#~ "<![CDATA[<hibernate-mapping>\n"
#~ "\n"
#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
#~ "\n"
#~ " <id name=\"id\" column=\"id\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <discriminator column=\"type\" type=\"character\"/>\n"
#~ "\n"
#~ " <property name=\"title\"/>\n"
#~ " <set name=\"authors\" table=\"author_work\">\n"
#~ " <key column name=\"work_id\"/>\n"
#~ " <many-to-many class=\"Author\" column name=\"author_id\"/>\n"
#~ " </set>\n"
#~ "\n"
#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
#~ " <property name=\"text\"/>\n"
#~ " </subclass>\n"
#~ "\n"
#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
#~ " <property name=\"tempo\"/>\n"
#~ " <property name=\"genre\"/>\n"
#~ " </subclass>\n"
#~ "\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Author\" table=\"authors\">\n"
#~ "\n"
#~ " <id name=\"id\" column=\"id\">\n"
#~ " <!-- The Author must have the same identifier as the Person --"
#~ ">\n"
#~ " <generator class=\"assigned\"/> \n"
#~ " </id>\n"
#~ "\n"
#~ " <property name=\"alias\"/>\n"
#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
#~ "\n"
#~ " <set name=\"works\" table=\"author_work\" inverse=\"true\">\n"
#~ " <key column=\"author_id\"/>\n"
#~ " <many-to-many class=\"Work\" column=\"work_id\"/>\n"
#~ " </set>\n"
#~ "\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Person\" table=\"persons\">\n"
#~ " <id name=\"id\" column=\"id\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"name\"/>\n"
#~ " </class>\n"
#~ "\n"
#~ "</hibernate-mapping>]]>"
#~ msgstr ""
#~ "<![CDATA[<hibernate-mapping>\n"
#~ "\n"
#~ " <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
#~ "\n"
#~ " <id name=\"id\" column=\"id\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <discriminator column=\"type\" type=\"character\"/>\n"
#~ "\n"
#~ " <property name=\"title\"/>\n"
#~ " <set name=\"authors\" table=\"author_work\">\n"
#~ " <key column name=\"work_id\"/>\n"
#~ " <many-to-many class=\"Author\" column name=\"author_id\"/>\n"
#~ " </set>\n"
#~ "\n"
#~ " <subclass name=\"Book\" discriminator-value=\"B\">\n"
#~ " <property name=\"text\"/>\n"
#~ " </subclass>\n"
#~ "\n"
#~ " <subclass name=\"Song\" discriminator-value=\"S\">\n"
#~ " <property name=\"tempo\"/>\n"
#~ " <property name=\"genre\"/>\n"
#~ " </subclass>\n"
#~ "\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Author\" table=\"authors\">\n"
#~ "\n"
#~ " <id name=\"id\" column=\"id\">\n"
#~ " <!-- The Author must have the same identifier as the Person --"
#~ ">\n"
#~ " <generator class=\"assigned\"/> \n"
#~ " </id>\n"
#~ "\n"
#~ " <property name=\"alias\"/>\n"
#~ " <one-to-one name=\"person\" constrained=\"true\"/>\n"
#~ "\n"
#~ " <set name=\"works\" table=\"author_work\" inverse=\"true\">\n"
#~ " <key column=\"author_id\"/>\n"
#~ " <many-to-many class=\"Work\" column=\"work_id\"/>\n"
#~ " </set>\n"
#~ "\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Person\" table=\"persons\">\n"
#~ " <id name=\"id\" column=\"id\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"name\"/>\n"
#~ " </class>\n"
#~ "\n"
#~ "</hibernate-mapping>]]>"
#~ msgid ""
#~ "<![CDATA[create table works (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " tempo FLOAT, \n"
#~ " genre VARCHAR(255), \n"
#~ " text INTEGER, \n"
#~ " title VARCHAR(255), \n"
#~ " type CHAR(1) not null, \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table author_work (\n"
#~ " author_id BIGINT not null, \n"
#~ " work_id BIGINT not null, \n"
#~ " primary key (work_id, author_id)\n"
#~ ")\n"
#~ "\n"
#~ "create table authors (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " alias VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table persons (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " name VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "alter table authors \n"
#~ " add constraint authorsFK0 foreign key (id) references persons\n"
#~ "alter table author_work \n"
#~ " add constraint author_workFK0 foreign key (author_id) references "
#~ "authors\n"
#~ "alter table author_work\n"
#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
#~ ">"
#~ msgstr ""
#~ "<![CDATA[create table works (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " tempo FLOAT, \n"
#~ " genre VARCHAR(255), \n"
#~ " text INTEGER, \n"
#~ " title VARCHAR(255), \n"
#~ " type CHAR(1) not null, \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table author_work (\n"
#~ " author_id BIGINT not null, \n"
#~ " work_id BIGINT not null, \n"
#~ " primary key (work_id, author_id)\n"
#~ ")\n"
#~ "\n"
#~ "create table authors (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " alias VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table persons (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " name VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "alter table authors \n"
#~ " add constraint authorsFK0 foreign key (id) references persons\n"
#~ "alter table author_work \n"
#~ " add constraint author_workFK0 foreign key (author_id) references "
#~ "authors\n"
#~ "alter table author_work\n"
#~ " add constraint author_workFK1 foreign key (work_id) references works]]"
#~ ">"
#~ msgid ""
#~ "<![CDATA[<hibernate-mapping>\n"
#~ "\n"
#~ " <class name=\"Customer\" table=\"customers\">\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"name\"/>\n"
#~ " <set name=\"orders\" inverse=\"true\">\n"
#~ " <key column=\"customer_id\"/>\n"
#~ " <one-to-many class=\"Order\"/>\n"
#~ " </set>\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Order\" table=\"orders\">\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"date\"/>\n"
#~ " <many-to-one name=\"customer\" column=\"customer_id\"/>\n"
#~ " <list name=\"lineItems\" table=\"line_items\">\n"
#~ " <key column=\"order_id\"/>\n"
#~ " <list-index column=\"line_number\"/>\n"
#~ " <composite-element class=\"LineItem\">\n"
#~ " <property name=\"quantity\"/>\n"
#~ " <many-to-one name=\"product\" column=\"product_id\"/>\n"
#~ " </composite-element>\n"
#~ " </list>\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Product\" table=\"products\">\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"serialNumber\"/>\n"
#~ " </class>\n"
#~ "\n"
#~ "</hibernate-mapping>]]>"
#~ msgstr ""
#~ "<![CDATA[<hibernate-mapping>\n"
#~ "\n"
#~ " <class name=\"Customer\" table=\"customers\">\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"name\"/>\n"
#~ " <set name=\"orders\" inverse=\"true\">\n"
#~ " <key column=\"customer_id\"/>\n"
#~ " <one-to-many class=\"Order\"/>\n"
#~ " </set>\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Order\" table=\"orders\">\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"date\"/>\n"
#~ " <many-to-one name=\"customer\" column=\"customer_id\"/>\n"
#~ " <list name=\"lineItems\" table=\"line_items\">\n"
#~ " <key column=\"order_id\"/>\n"
#~ " <list-index column=\"line_number\"/>\n"
#~ " <composite-element class=\"LineItem\">\n"
#~ " <property name=\"quantity\"/>\n"
#~ " <many-to-one name=\"product\" column=\"product_id\"/>\n"
#~ " </composite-element>\n"
#~ " </list>\n"
#~ " </class>\n"
#~ "\n"
#~ " <class name=\"Product\" table=\"products\">\n"
#~ " <id name=\"id\">\n"
#~ " <generator class=\"native\"/>\n"
#~ " </id>\n"
#~ " <property name=\"serialNumber\"/>\n"
#~ " </class>\n"
#~ "\n"
#~ "</hibernate-mapping>]]>"
#~ msgid ""
#~ "<![CDATA[create table customers (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " name VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table orders (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " customer_id BIGINT, \n"
#~ " date TIMESTAMP, \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table line_items (\n"
#~ " line_number INTEGER not null, \n"
#~ " order_id BIGINT not null, \n"
#~ " product_id BIGINT, \n"
#~ " quantity INTEGER, \n"
#~ " primary key (order_id, line_number)\n"
#~ ")\n"
#~ "\n"
#~ "create table products (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " serialNumber VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "alter table orders \n"
#~ " add constraint ordersFK0 foreign key (customer_id) references "
#~ "customers\n"
#~ "alter table line_items\n"
#~ " add constraint line_itemsFK0 foreign key (product_id) references "
#~ "products\n"
#~ "alter table line_items\n"
#~ " add constraint line_itemsFK1 foreign key (order_id) references "
#~ "orders]]>"
#~ msgstr ""
#~ "<![CDATA[create table customers (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " name VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table orders (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " customer_id BIGINT, \n"
#~ " date TIMESTAMP, \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "create table line_items (\n"
#~ " line_number INTEGER not null, \n"
#~ " order_id BIGINT not null, \n"
#~ " product_id BIGINT, \n"
#~ " quantity INTEGER, \n"
#~ " primary key (order_id, line_number)\n"
#~ ")\n"
#~ "\n"
#~ "create table products (\n"
#~ " id BIGINT not null generated by default as identity, \n"
#~ " serialNumber VARCHAR(255), \n"
#~ " primary key (id)\n"
#~ ")\n"
#~ "\n"
#~ "alter table orders \n"
#~ " add constraint ordersFK0 foreign key (customer_id) references "
#~ "customers\n"
#~ "alter table line_items\n"
#~ " add constraint line_itemsFK0 foreign key (product_id) references "
#~ "products\n"
#~ "alter table line_items\n"
#~ " add constraint line_itemsFK1 foreign key (order_id) references "
#~ "orders]]>"
#~ msgid ""
#~ "<![CDATA[<class name=\"Person\">\n"
#~ " <id name=\"name\"/>\n"
#~ " <one-to-one name=\"address\" \n"
#~ " cascade=\"all\">\n"
#~ " <formula>name</formula>\n"
#~ " <formula>'HOME'</formula>\n"
#~ " </one-to-one>\n"
#~ " <one-to-one name=\"mailingAddress\" \n"
#~ " cascade=\"all\">\n"
#~ " <formula>name</formula>\n"
#~ " <formula>'MAILING'</formula>\n"
#~ " </one-to-one>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\" batch-size=\"2\" \n"
#~ " check=\"addressType in ('MAILING', 'HOME', 'BUSINESS')\">\n"
#~ " <composite-id>\n"
#~ " <key-many-to-one name=\"person\" \n"
#~ " column=\"personName\"/>\n"
#~ " <key-property name=\"type\" \n"
#~ " column=\"addressType\"/>\n"
#~ " </composite-id>\n"
#~ " <property name=\"street\" type=\"text\"/>\n"
#~ " <property name=\"state\"/>\n"
#~ " <property name=\"zip\"/>\n"
#~ "</class>]]>"
#~ msgstr ""
#~ "<![CDATA[<class name=\"Person\">\n"
#~ " <id name=\"name\"/>\n"
#~ " <one-to-one name=\"address\" \n"
#~ " cascade=\"all\">\n"
#~ " <formula>name</formula>\n"
#~ " <formula>'HOME'</formula>\n"
#~ " </one-to-one>\n"
#~ " <one-to-one name=\"mailingAddress\" \n"
#~ " cascade=\"all\">\n"
#~ " <formula>name</formula>\n"
#~ " <formula>'MAILING'</formula>\n"
#~ " </one-to-one>\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Address\" batch-size=\"2\" \n"
#~ " check=\"addressType in ('MAILING', 'HOME', 'BUSINESS')\">\n"
#~ " <composite-id>\n"
#~ " <key-many-to-one name=\"person\" \n"
#~ " column=\"personName\"/>\n"
#~ " <key-property name=\"type\" \n"
#~ " column=\"addressType\"/>\n"
#~ " </composite-id>\n"
#~ " <property name=\"street\" type=\"text\"/>\n"
#~ " <property name=\"state\"/>\n"
#~ " <property name=\"zip\"/>\n"
#~ "</class>]]>"
#~ msgid ""
#~ "<![CDATA[<class name=\"Customer\">\n"
#~ "\n"
#~ " <id name=\"customerId\"\n"
#~ " length=\"10\">\n"
#~ " <generator class=\"assigned\"/>\n"
#~ " </id>\n"
#~ "\n"
#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
#~ "\n"
#~ " <list name=\"orders\"\n"
#~ " inverse=\"true\"\n"
#~ " cascade=\"save-update\">\n"
#~ " <key column=\"customerId\"/>\n"
#~ " <index column=\"orderNumber\"/>\n"
#~ " <one-to-many class=\"Order\"/>\n"
#~ " </list>\n"
#~ "\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
#~ " <synchronize table=\"LineItem\"/>\n"
#~ " <synchronize table=\"Product\"/>\n"
#~ " \n"
#~ " <composite-id name=\"id\" \n"
#~ " class=\"Order$Id\">\n"
#~ " <key-property name=\"customerId\" length=\"10\"/>\n"
#~ " <key-property name=\"orderNumber\"/>\n"
#~ " </composite-id>\n"
#~ " \n"
#~ " <property name=\"orderDate\" \n"
#~ " type=\"calendar_date\"\n"
#~ " not-null=\"true\"/>\n"
#~ " \n"
#~ " <property name=\"total\">\n"
#~ " <formula>\n"
#~ " ( select sum(li.quantity*p.price) \n"
#~ " from LineItem li, Product p \n"
#~ " where li.productId = p.productId \n"
#~ " and li.customerId = customerId \n"
#~ " and li.orderNumber = orderNumber )\n"
#~ " </formula>\n"
#~ " </property>\n"
#~ " \n"
#~ " <many-to-one name=\"customer\"\n"
#~ " column=\"customerId\"\n"
#~ " insert=\"false\"\n"
#~ " update=\"false\" \n"
#~ " not-null=\"true\"/>\n"
#~ " \n"
#~ " <bag name=\"lineItems\"\n"
#~ " fetch=\"join\" \n"
#~ " inverse=\"true\"\n"
#~ " cascade=\"save-update\">\n"
#~ " <key>\n"
#~ " <column name=\"customerId\"/>\n"
#~ " <column name=\"orderNumber\"/>\n"
#~ " </key>\n"
#~ " <one-to-many class=\"LineItem\"/>\n"
#~ " </bag>\n"
#~ " \n"
#~ "</class>\n"
#~ " \n"
#~ "<class name=\"LineItem\">\n"
#~ " \n"
#~ " <composite-id name=\"id\" \n"
#~ " class=\"LineItem$Id\">\n"
#~ " <key-property name=\"customerId\" length=\"10\"/>\n"
#~ " <key-property name=\"orderNumber\"/>\n"
#~ " <key-property name=\"productId\" length=\"10\"/>\n"
#~ " </composite-id>\n"
#~ " \n"
#~ " <property name=\"quantity\"/>\n"
#~ " \n"
#~ " <many-to-one name=\"order\"\n"
#~ " insert=\"false\"\n"
#~ " update=\"false\" \n"
#~ " not-null=\"true\">\n"
#~ " <column name=\"customerId\"/>\n"
#~ " <column name=\"orderNumber\"/>\n"
#~ " </many-to-one>\n"
#~ " \n"
#~ " <many-to-one name=\"product\"\n"
#~ " insert=\"false\"\n"
#~ " update=\"false\" \n"
#~ " not-null=\"true\"\n"
#~ " column=\"productId\"/>\n"
#~ " \n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Product\">\n"
#~ " <synchronize table=\"LineItem\"/>\n"
#~ "\n"
#~ " <id name=\"productId\"\n"
#~ " length=\"10\">\n"
#~ " <generator class=\"assigned\"/>\n"
#~ " </id>\n"
#~ " \n"
#~ " <property name=\"description\" \n"
#~ " not-null=\"true\" \n"
#~ " length=\"200\"/>\n"
#~ " <property name=\"price\" length=\"3\"/>\n"
#~ " <property name=\"numberAvailable\"/>\n"
#~ " \n"
#~ " <property name=\"numberOrdered\">\n"
#~ " <formula>\n"
#~ " ( select sum(li.quantity) \n"
#~ " from LineItem li \n"
#~ " where li.productId = productId )\n"
#~ " </formula>\n"
#~ " </property>\n"
#~ " \n"
#~ "</class>]]>"
#~ msgstr ""
#~ "<![CDATA[<class name=\"Customer\">\n"
#~ "\n"
#~ " <id name=\"customerId\"\n"
#~ " length=\"10\">\n"
#~ " <generator class=\"assigned\"/>\n"
#~ " </id>\n"
#~ "\n"
#~ " <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
#~ " <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
#~ "\n"
#~ " <list name=\"orders\"\n"
#~ " inverse=\"true\"\n"
#~ " cascade=\"save-update\">\n"
#~ " <key column=\"customerId\"/>\n"
#~ " <index column=\"orderNumber\"/>\n"
#~ " <one-to-many class=\"Order\"/>\n"
#~ " </list>\n"
#~ "\n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
#~ " <synchronize table=\"LineItem\"/>\n"
#~ " <synchronize table=\"Product\"/>\n"
#~ " \n"
#~ " <composite-id name=\"id\" \n"
#~ " class=\"Order$Id\">\n"
#~ " <key-property name=\"customerId\" length=\"10\"/>\n"
#~ " <key-property name=\"orderNumber\"/>\n"
#~ " </composite-id>\n"
#~ " \n"
#~ " <property name=\"orderDate\" \n"
#~ " type=\"calendar_date\"\n"
#~ " not-null=\"true\"/>\n"
#~ " \n"
#~ " <property name=\"total\">\n"
#~ " <formula>\n"
#~ " ( select sum(li.quantity*p.price) \n"
#~ " from LineItem li, Product p \n"
#~ " where li.productId = p.productId \n"
#~ " and li.customerId = customerId \n"
#~ " and li.orderNumber = orderNumber )\n"
#~ " </formula>\n"
#~ " </property>\n"
#~ " \n"
#~ " <many-to-one name=\"customer\"\n"
#~ " column=\"customerId\"\n"
#~ " insert=\"false\"\n"
#~ " update=\"false\" \n"
#~ " not-null=\"true\"/>\n"
#~ " \n"
#~ " <bag name=\"lineItems\"\n"
#~ " fetch=\"join\" \n"
#~ " inverse=\"true\"\n"
#~ " cascade=\"save-update\">\n"
#~ " <key>\n"
#~ " <column name=\"customerId\"/>\n"
#~ " <column name=\"orderNumber\"/>\n"
#~ " </key>\n"
#~ " <one-to-many class=\"LineItem\"/>\n"
#~ " </bag>\n"
#~ " \n"
#~ "</class>\n"
#~ " \n"
#~ "<class name=\"LineItem\">\n"
#~ " \n"
#~ " <composite-id name=\"id\" \n"
#~ " class=\"LineItem$Id\">\n"
#~ " <key-property name=\"customerId\" length=\"10\"/>\n"
#~ " <key-property name=\"orderNumber\"/>\n"
#~ " <key-property name=\"productId\" length=\"10\"/>\n"
#~ " </composite-id>\n"
#~ " \n"
#~ " <property name=\"quantity\"/>\n"
#~ " \n"
#~ " <many-to-one name=\"order\"\n"
#~ " insert=\"false\"\n"
#~ " update=\"false\" \n"
#~ " not-null=\"true\">\n"
#~ " <column name=\"customerId\"/>\n"
#~ " <column name=\"orderNumber\"/>\n"
#~ " </many-to-one>\n"
#~ " \n"
#~ " <many-to-one name=\"product\"\n"
#~ " insert=\"false\"\n"
#~ " update=\"false\" \n"
#~ " not-null=\"true\"\n"
#~ " column=\"productId\"/>\n"
#~ " \n"
#~ "</class>\n"
#~ "\n"
#~ "<class name=\"Product\">\n"
#~ " <synchronize table=\"LineItem\"/>\n"
#~ "\n"
#~ " <id name=\"productId\"\n"
#~ " length=\"10\">\n"
#~ " <generator class=\"assigned\"/>\n"
#~ " </id>\n"
#~ " \n"
#~ " <property name=\"description\" \n"
#~ " not-null=\"true\" \n"
#~ " length=\"200\"/>\n"
#~ " <property name=\"price\" length=\"3\"/>\n"
#~ " <property name=\"numberAvailable\"/>\n"
#~ " \n"
#~ " <property name=\"numberOrdered\">\n"
#~ " <formula>\n"
#~ " ( select sum(li.quantity) \n"
#~ " from LineItem li \n"
#~ " where li.productId = productId )\n"
#~ " </formula>\n"
#~ " </property>\n"
#~ " \n"
#~ "</class>]]>"
#~ msgid ""
#~ "<![CDATA[<class name=\"User\" table=\"`User`\">\n"
#~ " <composite-id>\n"
#~ " <key-property name=\"name\"/>\n"
#~ " <key-property name=\"org\"/>\n"
#~ " </composite-id>\n"
#~ " <set name=\"groups\" table=\"UserGroup\">\n"
#~ " <key>\n"
#~ " <column name=\"userName\"/>\n"
#~ " <column name=\"org\"/>\n"
#~ " </key>\n"
#~ " <many-to-many class=\"Group\">\n"