~raginggoblin/infolog/infolog

« back to all changes in this revision

Viewing changes to InfologServer/lib/hibernate-distribution-3.3.2.GA/project/documentation/manual/src/main/docbook/fr-FR/content/xml.po

  • Committer: Raging Goblin
  • Date: 2013-11-16 16:51:32 UTC
  • Revision ID: raging_goblin-20131116165132-weujnptzc88uy4ah
Mavenized the project, now using shared project InfologSync

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
msgid ""
2
 
msgstr ""
3
 
"Project-Id-Version: PACKAGE VERSION\n"
4
 
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
5
 
"POT-Creation-Date: 2009-06-10 21:02+0000\n"
6
 
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
7
 
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
 
"Language-Team: LANGUAGE <LL@li.org>\n"
9
 
"MIME-Version: 1.0\n"
10
 
"Content-Type: text/plain; charset=UTF-8\n"
11
 
"Content-Transfer-Encoding: 8bit\n"
12
 
 
13
 
#. Tag: title
14
 
#: xml.xml:29
15
 
#, no-c-format
16
 
msgid "XML Mapping"
17
 
msgstr "Mapping XML"
18
 
 
19
 
#. Tag: emphasis
20
 
#: xml.xml:31
21
 
#, fuzzy, no-c-format
22
 
msgid ""
23
 
"XML Mapping is an experimental feature in Hibernate 3.0 and is currently "
24
 
"under active development."
25
 
msgstr ""
26
 
"Notez que cette fonctionnalité est expérimentale dans Hibernate 3.0 et est "
27
 
"en développement extrêmement actif."
28
 
 
29
 
#. Tag: title
30
 
#: xml.xml:37
31
 
#, no-c-format
32
 
msgid "Working with XML data"
33
 
msgstr "Travailler avec des données XML"
34
 
 
35
 
#. Tag: para
36
 
#: xml.xml:39
37
 
#, fuzzy, no-c-format
38
 
msgid ""
39
 
"Hibernate allows you to work with persistent XML data in much the same way "
40
 
"you work with persistent POJOs. A parsed XML tree can be thought of as "
41
 
"another way of representing the relational data at the object level, instead "
42
 
"of POJOs."
43
 
msgstr ""
44
 
"Hibernate vous laisse travailler avec des données XML persistantes de la "
45
 
"même manière que vous travaillez avec des POJOs persistants. Un arbre XML "
46
 
"peut être vu comme une autre manière de représenter les données "
47
 
"relationnelles au niveau objet, à la place des POJOs."
48
 
 
49
 
#. Tag: para
50
 
#: xml.xml:46
51
 
#, no-c-format
52
 
msgid ""
53
 
"Hibernate supports dom4j as API for manipulating XML trees. You can write "
54
 
"queries that retrieve dom4j trees from the database and have any "
55
 
"modification you make to the tree automatically synchronized to the "
56
 
"database. You can even take an XML document, parse it using dom4j, and write "
57
 
"it to the database with any of Hibernate's basic operations: <literal>persist"
58
 
"(), saveOrUpdate(), merge(), delete(), replicate()</literal> (merging is not "
59
 
"yet supported)."
60
 
msgstr ""
61
 
"Hibernate supporte dom4j en tant qu'API pour la manipulation des arbres XML. "
62
 
"Vous pouvez écrire des requêtes qui récupèrent des arbres dom4j à partie de "
63
 
"la base de données, et avoir toutes les modifications que vous faites sur "
64
 
"l'arbre automatiquement synchronisées dans la base de données. Vous pouvez "
65
 
"même prendre un document XML, l'analyser en utilisant dom4j, et l'écrire "
66
 
"dans la base de données via les opérations basiques d'Hibernate : "
67
 
"<literal>persist(), saveOrUpdate(), merge(), delete(), replicate()</literal> "
68
 
"(merge() n'est pas encore supporté)."
69
 
 
70
 
#. Tag: para
71
 
#: xml.xml:56
72
 
#, no-c-format
73
 
msgid ""
74
 
"This feature has many applications including data import/export, "
75
 
"externalization of entity data via JMS or SOAP and XSLT-based reporting."
76
 
msgstr ""
77
 
"Cette fonctionnalité a plusieurs applications dont l'import/export de "
78
 
"données, l'externalisation d'entités via JMS ou SOAP et les rapports XSLT."
79
 
 
80
 
#. Tag: para
81
 
#: xml.xml:61
82
 
#, fuzzy, no-c-format
83
 
msgid ""
84
 
"A single mapping can be used to simultaneously map properties of a class and "
85
 
"nodes of an XML document to the database, or, if there is no class to map, "
86
 
"it can be used to map just the XML."
87
 
msgstr ""
88
 
"Un simple mapping peut être utilisé pour simultanément mapper les propriétés "
89
 
"d'une classe et les noeuds d'un document XML vers la base de données, ou, si "
90
 
"il n'y a pas de classe à mapper, il peut être utilisé juste pour mapper le "
91
 
"XML."
92
 
 
93
 
#. Tag: title
94
 
#: xml.xml:68
95
 
#, no-c-format
96
 
msgid "Specifying XML and class mapping together"
97
 
msgstr "Spécifier le mapping XML et le mapping d'une classe ensemble"
98
 
 
99
 
#. Tag: para
100
 
#: xml.xml:70
101
 
#, no-c-format
102
 
msgid "Here is an example of mapping a POJO and XML simultaneously:"
103
 
msgstr "Voici un exemple de mapping d'un POJO et du XML simultanément :"
104
 
 
105
 
#. Tag: programlisting
106
 
#: xml.xml:74
107
 
#, no-c-format
108
 
msgid ""
109
 
"<![CDATA[<class name=\"Account\" \n"
110
 
"        table=\"ACCOUNTS\" \n"
111
 
"        node=\"account\">\n"
112
 
"        \n"
113
 
"    <id name=\"accountId\" \n"
114
 
"            column=\"ACCOUNT_ID\" \n"
115
 
"            node=\"@id\"/>\n"
116
 
"            \n"
117
 
"    <many-to-one name=\"customer\" \n"
118
 
"            column=\"CUSTOMER_ID\" \n"
119
 
"            node=\"customer/@id\" \n"
120
 
"            embed-xml=\"false\"/>\n"
121
 
"            \n"
122
 
"    <property name=\"balance\" \n"
123
 
"            column=\"BALANCE\" \n"
124
 
"            node=\"balance\"/>\n"
125
 
"            \n"
126
 
"    ...\n"
127
 
"    \n"
128
 
"</class>]]>"
129
 
msgstr ""
130
 
 
131
 
#. Tag: title
132
 
#: xml.xml:78
133
 
#, no-c-format
134
 
msgid "Specifying only an XML mapping"
135
 
msgstr "Spécifier seulement un mapping XML"
136
 
 
137
 
#. Tag: para
138
 
#: xml.xml:80
139
 
#, no-c-format
140
 
msgid "Here is an example where there is no POJO class:"
141
 
msgstr "Voici un exemple dans lequel il n'y a pas de class POJO :"
142
 
 
143
 
#. Tag: programlisting
144
 
#: xml.xml:84
145
 
#, no-c-format
146
 
msgid ""
147
 
"<![CDATA[<class entity-name=\"Account\" \n"
148
 
"        table=\"ACCOUNTS\" \n"
149
 
"        node=\"account\">\n"
150
 
"        \n"
151
 
"    <id name=\"id\" \n"
152
 
"            column=\"ACCOUNT_ID\" \n"
153
 
"            node=\"@id\" \n"
154
 
"            type=\"string\"/>\n"
155
 
"            \n"
156
 
"    <many-to-one name=\"customerId\" \n"
157
 
"            column=\"CUSTOMER_ID\" \n"
158
 
"            node=\"customer/@id\" \n"
159
 
"            embed-xml=\"false\" \n"
160
 
"            entity-name=\"Customer\"/>\n"
161
 
"            \n"
162
 
"    <property name=\"balance\" \n"
163
 
"            column=\"BALANCE\" \n"
164
 
"            node=\"balance\" \n"
165
 
"            type=\"big_decimal\"/>\n"
166
 
"            \n"
167
 
"    ...\n"
168
 
"    \n"
169
 
"</class>]]>"
170
 
msgstr ""
171
 
 
172
 
#. Tag: para
173
 
#: xml.xml:86
174
 
#, fuzzy, no-c-format
175
 
msgid ""
176
 
"This mapping allows you to access the data as a dom4j tree, or as a graph of "
177
 
"property name/value pairs or java <literal>Map</literal>s. The property "
178
 
"names are purely logical constructs that can be referred to in HQL queries."
179
 
msgstr ""
180
 
"Ce mapping vous permet d'accéder aux données comme un arbre dom4j, ou comme "
181
 
"un graphe de paire nom de propriété/valeur (<literal>Map</literal>s java). "
182
 
"Les noms des propriétés sont des constructions purement logiques qui peuvent "
183
 
"être référées des dans requêtes HQL."
184
 
 
185
 
#. Tag: title
186
 
#: xml.xml:97
187
 
#, no-c-format
188
 
msgid "XML mapping metadata"
189
 
msgstr "Métadonnées du mapping XML"
190
 
 
191
 
#. Tag: para
192
 
#: xml.xml:99
193
 
#, fuzzy, no-c-format
194
 
msgid ""
195
 
"A range of Hibernate mapping elements accept the <literal>node</literal> "
196
 
"attribute. This lets you specify the name of an XML attribute or element "
197
 
"that holds the property or entity data. The format of the <literal>node</"
198
 
"literal> attribute must be one of the following:"
199
 
msgstr ""
200
 
"Plusieurs éléments du mapping Hibernate acceptent l'attribut <literal>node</"
201
 
"literal>. Ceci vous permet de spécifier le nom d'un attribut XML ou d'un "
202
 
"élément qui contient la propriété ou les données de l'entité. Le format de "
203
 
"l'attribut <literal>node</literal> doit être un des suivants :"
204
 
 
205
 
#. Tag: para
206
 
#: xml.xml:108
207
 
#, fuzzy, no-c-format
208
 
msgid "<literal>\"element-name\"</literal>: map to the named XML element"
209
 
msgstr "<literal>\"element-name\"</literal> - mappe vers l'élément XML nommé"
210
 
 
211
 
#. Tag: para
212
 
#: xml.xml:111
213
 
#, fuzzy, no-c-format
214
 
msgid "<literal>\"@attribute-name\"</literal>: map to the named XML attribute"
215
 
msgstr ""
216
 
"<literal>\"@attribute-name\"</literal> - mappe vers l'attribut XML nommé"
217
 
 
218
 
#. Tag: para
219
 
#: xml.xml:114
220
 
#, fuzzy, no-c-format
221
 
msgid "<literal>\".\"</literal>: map to the parent element"
222
 
msgstr "<literal>\".\"</literal> - mappe vers le parent de l'élément"
223
 
 
224
 
#. Tag: para
225
 
#: xml.xml:117
226
 
#, fuzzy, no-c-format
227
 
msgid ""
228
 
"<literal>\"element-name/@attribute-name\"</literal>: map to the named "
229
 
"attribute of the named element"
230
 
msgstr ""
231
 
"<literal>\"element-name/@attribute-name\"</literal> - mappe vers l'élément "
232
 
"nommé de l'attribut nommé"
233
 
 
234
 
#. Tag: para
235
 
#: xml.xml:124
236
 
#, fuzzy, no-c-format
237
 
msgid ""
238
 
"For collections and single valued associations, there is an additional "
239
 
"<literal>embed-xml</literal> attribute. If <literal>embed-xml=\"true\"</"
240
 
"literal>, the default, the XML tree for the associated entity (or collection "
241
 
"of value type) will be embedded directly in the XML tree for the entity that "
242
 
"owns the association. Otherwise, if <literal>embed-xml=\"false\"</literal>, "
243
 
"then only the referenced identifier value will appear in the XML for single "
244
 
"point associations and collections will not appear at all."
245
 
msgstr ""
246
 
"Pour des collections et de simples associations valuées, il y a un attribut "
247
 
"<literal>embed-xml</literal> supplémentaire. Si <literal>embed-xml=\"true\"</"
248
 
"literal>, qui est la valeur par défaut, l'arbre XML pour l'entité associée "
249
 
"(ou la collection des types de valeurs) sera embarquée directement dans "
250
 
"l'arbre XML pour l'entité qui possède l'association. Sinon, si "
251
 
"<literal>embed-xml=\"false\"</literal>, alors seule la valeur de "
252
 
"l'identifiant référencé apparaîtra dans le XML pour de simples associations "
253
 
"de points, et les collections n'appraîtront simplement pas."
254
 
 
255
 
#. Tag: para
256
 
#: xml.xml:134
257
 
#, fuzzy, no-c-format
258
 
msgid ""
259
 
"Do not leave <literal>embed-xml=\"true\"</literal> for too many "
260
 
"associations, since XML does not deal well with circularity."
261
 
msgstr ""
262
 
"Vous devriez faire attention à ne pas laisser <literal>embed-xml=\"true\"</"
263
 
"literal> pour trop d'associations, puisque XML ne traite pas bien les liens "
264
 
"circurlaires."
265
 
 
266
 
#. Tag: programlisting
267
 
#: xml.xml:139
268
 
#, no-c-format
269
 
msgid ""
270
 
"<![CDATA[<class name=\"Customer\" \n"
271
 
"        table=\"CUSTOMER\" \n"
272
 
"        node=\"customer\">\n"
273
 
"        \n"
274
 
"    <id name=\"id\" \n"
275
 
"            column=\"CUST_ID\" \n"
276
 
"            node=\"@id\"/>\n"
277
 
"            \n"
278
 
"    <map name=\"accounts\" \n"
279
 
"            node=\".\" \n"
280
 
"            embed-xml=\"true\">\n"
281
 
"        <key column=\"CUSTOMER_ID\" \n"
282
 
"                not-null=\"true\"/>\n"
283
 
"        <map-key column=\"SHORT_DESC\" \n"
284
 
"                node=\"@short-desc\" \n"
285
 
"                type=\"string\"/>\n"
286
 
"        <one-to-many entity-name=\"Account\"\n"
287
 
"                embed-xml=\"false\" \n"
288
 
"                node=\"account\"/>\n"
289
 
"    </map>\n"
290
 
"    \n"
291
 
"    <component name=\"name\" \n"
292
 
"            node=\"name\">\n"
293
 
"        <property name=\"firstName\" \n"
294
 
"                node=\"first-name\"/>\n"
295
 
"        <property name=\"initial\" \n"
296
 
"                node=\"initial\"/>\n"
297
 
"        <property name=\"lastName\" \n"
298
 
"                node=\"last-name\"/>\n"
299
 
"    </component>\n"
300
 
"    \n"
301
 
"    ...\n"
302
 
"    \n"
303
 
"</class>]]>"
304
 
msgstr ""
305
 
 
306
 
#. Tag: para
307
 
#: xml.xml:141
308
 
#, fuzzy, no-c-format
309
 
msgid ""
310
 
"In this case, the collection of account ids is embedded, but not the actual "
311
 
"account data. The following HQL query:"
312
 
msgstr ""
313
 
"dans ce cas, nous avons décidé d'embarquer la collection d'identifiants de "
314
 
"compte, mais pas les données actuelles du compte. La requête HQL suivante :"
315
 
 
316
 
#. Tag: programlisting
317
 
#: xml.xml:146
318
 
#, no-c-format
319
 
msgid ""
320
 
"<![CDATA[from Customer c left join fetch c.accounts where c.lastName like :"
321
 
"lastName]]>"
322
 
msgstr ""
323
 
 
324
 
#. Tag: para
325
 
#: xml.xml:148
326
 
#, fuzzy, no-c-format
327
 
msgid "would return datasets such as this:"
328
 
msgstr "devrait retourner l'ensemble de données suivant :"
329
 
 
330
 
#. Tag: programlisting
331
 
#: xml.xml:152
332
 
#, no-c-format
333
 
msgid ""
334
 
"<![CDATA[<customer id=\"123456789\">\n"
335
 
"    <account short-desc=\"Savings\">987632567</account>\n"
336
 
"    <account short-desc=\"Credit Card\">985612323</account>\n"
337
 
"    <name>\n"
338
 
"        <first-name>Gavin</first-name>\n"
339
 
"        <initial>A</initial>\n"
340
 
"        <last-name>King</last-name>\n"
341
 
"    </name>\n"
342
 
"    ...\n"
343
 
"</customer>]]>"
344
 
msgstr ""
345
 
 
346
 
#. Tag: para
347
 
#: xml.xml:154
348
 
#, no-c-format
349
 
msgid ""
350
 
"If you set <literal>embed-xml=\"true\"</literal> on the <literal>&lt;one-to-"
351
 
"many&gt;</literal> mapping, the data might look more like this:"
352
 
msgstr ""
353
 
"Si vous positionnez <literal>embed-xml=\"true\"</literal> sur le mapping "
354
 
"<literal>&lt;one-to-many&gt;</literal>, les données pourraient ressembler "
355
 
"plus à ça :"
356
 
 
357
 
#. Tag: programlisting
358
 
#: xml.xml:159
359
 
#, no-c-format
360
 
msgid ""
361
 
"<![CDATA[<customer id=\"123456789\">\n"
362
 
"    <account id=\"987632567\" short-desc=\"Savings\">\n"
363
 
"        <customer id=\"123456789\"/>\n"
364
 
"        <balance>100.29</balance>\n"
365
 
"    </account>\n"
366
 
"    <account id=\"985612323\" short-desc=\"Credit Card\">\n"
367
 
"        <customer id=\"123456789\"/>\n"
368
 
"        <balance>-2370.34</balance>\n"
369
 
"    </account>\n"
370
 
"    <name>\n"
371
 
"        <first-name>Gavin</first-name>\n"
372
 
"        <initial>A</initial>\n"
373
 
"        <last-name>King</last-name>\n"
374
 
"    </name>\n"
375
 
"    ...\n"
376
 
"</customer>]]>"
377
 
msgstr ""
378
 
 
379
 
#. Tag: title
380
 
#: xml.xml:165
381
 
#, no-c-format
382
 
msgid "Manipulating XML data"
383
 
msgstr "Manipuler des données XML"
384
 
 
385
 
#. Tag: para
386
 
#: xml.xml:167
387
 
#, fuzzy, no-c-format
388
 
msgid ""
389
 
"You can also re-read and update XML documents in the application. You can do "
390
 
"this by obtaining a dom4j session:"
391
 
msgstr ""
392
 
"Relisons et mettons à jour des documents XML dans l'application. Nous "
393
 
"faisons ça en obtenant une session dom4j :"
394
 
 
395
 
#. Tag: programlisting
396
 
#: xml.xml:172
397
 
#, no-c-format
398
 
msgid ""
399
 
"<![CDATA[Document doc = ....;\n"
400
 
"       \n"
401
 
"Session session = factory.openSession();\n"
402
 
"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
403
 
"Transaction tx = session.beginTransaction();\n"
404
 
"\n"
405
 
"List results = dom4jSession\n"
406
 
"    .createQuery(\"from Customer c left join fetch c.accounts where c."
407
 
"lastName like :lastName\")\n"
408
 
"    .list();\n"
409
 
"for ( int i=0; i<results.size(); i++ ) {\n"
410
 
"    //add the customer data to the XML document\n"
411
 
"    Element customer = (Element) results.get(i);\n"
412
 
"    doc.add(customer);\n"
413
 
"}\n"
414
 
"\n"
415
 
"tx.commit();\n"
416
 
"session.close();]]>"
417
 
msgstr ""
418
 
 
419
 
#. Tag: programlisting
420
 
#: xml.xml:174
421
 
#, no-c-format
422
 
msgid ""
423
 
"<![CDATA[Session session = factory.openSession();\n"
424
 
"Session dom4jSession = session.getSession(EntityMode.DOM4J);\n"
425
 
"Transaction tx = session.beginTransaction();\n"
426
 
"\n"
427
 
"Element cust = (Element) dom4jSession.get(\"Customer\", customerId);\n"
428
 
"for ( int i=0; i<results.size(); i++ ) {\n"
429
 
"    Element customer = (Element) results.get(i);\n"
430
 
"    //change the customer name in the XML and database\n"
431
 
"    Element name = customer.element(\"name\");\n"
432
 
"    name.element(\"first-name\").setText(firstName);\n"
433
 
"    name.element(\"initial\").setText(initial);\n"
434
 
"    name.element(\"last-name\").setText(lastName);\n"
435
 
"}\n"
436
 
"\n"
437
 
"tx.commit();\n"
438
 
"session.close();]]>"
439
 
msgstr ""
440
 
 
441
 
#. Tag: para
442
 
#: xml.xml:176
443
 
#, fuzzy, no-c-format
444
 
msgid ""
445
 
"When implementing XML-based data import/export, it is useful to combine this "
446
 
"feature with Hibernate's <literal>replicate()</literal> operation."
447
 
msgstr ""
448
 
"Il est extrêmement utile de combiner cette fonctionnalité avec l'opération "
449
 
"<literal>replicate()</literal> d'Hibernate pour implémenter des imports/"
450
 
"exports de données XML."