📄 configuration.po
字号:
msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: http://bugs.kde.org\n""POT-Creation-Date: 2008-08-14 15:28+0000\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <LL@li.org>\n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"#. Tag: title#: configuration.xml:29#, no-c-formatmsgid "Configuration"msgstr "Configuration"#. Tag: para#: configuration.xml:31#, no-c-formatmsgid """Because Hibernate is designed to operate in many different environments, ""there are a large number of configuration parameters. Fortunately, most have ""sensible default values and Hibernate is distributed with an example ""<literal>hibernate.properties</literal> file in <literal>etc/</literal> that ""shows the various options. Just put the example file in your classpath and ""customize it."msgstr """Parce qu'Hibernate est conçu pour fonctionner dans différents ""environnements, il existe beaucoup de paramètres de configuration. ""Heureusement, la plupart ont des valeurs par défaut appropriées et la ""distribution d'Hibernate contient un exemple de fichier <literal>hibernate.""properties</literal> dans le répertoire <literal>etc/</literal> qui montre ""les différentes options. Vous n'avez qu'à placer ce fichier dans votre ""classpath et à l'adapter."#. Tag: title#: configuration.xml:40#, no-c-formatmsgid "Programmatic configuration"msgstr "Configuration par programmation"#. Tag: para#: configuration.xml:42#, fuzzy, no-c-formatmsgid """An instance of <classname>org.hibernate.cfg.Configuration</classname> ""represents an entire set of mappings of an application's Java types to an ""SQL database. The <classname>org.hibernate.cfg.Configuration</classname> is ""used to build an (immutable) <interfacename>org.hibernate.SessionFactory</""interfacename>. The mappings are compiled from various XML mapping files."msgstr """Une instance de <literal>org.hibernate.cfg.Configuration</literal> ""représente un ensemble de mappings des classes Java d'une application vers ""la base de données SQL. La <literal>Configuration</literal> est utilisée ""pour construire un objet (immuable) <literal>SessionFactory</literal>. Les ""mappings sont constitués d'un ensemble de fichiers de mapping XML."#. Tag: para#: configuration.xml:49#, fuzzy, no-c-formatmsgid """You may obtain a <classname>org.hibernate.cfg.Configuration</classname> ""instance by instantiating it directly and specifying XML mapping documents. ""If the mapping files are in the classpath, use <literal>addResource()</""literal>:"msgstr """Vous pouvez obtenir une instance de <literal>Configuration</literal> en ""l'instanciant directement et en spécifiant la liste des documents XML de ""mapping. Si les fichiers de mapping sont dans le classpath, vous pouvez le ""faire à l'aide de la méthode <literal>addResource()</literal> :"#. Tag: programlisting#: configuration.xml:55#, no-c-formatmsgid """<![CDATA[Configuration cfg = new Configuration()\n"" .addResource(\"Item.hbm.xml\")\n"" .addResource(\"Bid.hbm.xml\");]]>"msgstr ""#. Tag: para#: configuration.xml:57#, no-c-formatmsgid """An alternative (sometimes better) way is to specify the mapped class, and ""let Hibernate find the mapping document for you:"msgstr """Une alternative (parfois meilleure) est de spécifier les classes mappées et ""de laisser Hibernate trouver les documents de mapping pour vous :"#. Tag: programlisting#: configuration.xml:62#, no-c-formatmsgid """<![CDATA[Configuration cfg = new Configuration()\n"" .addClass(org.hibernate.auction.Item.class)\n"" .addClass(org.hibernate.auction.Bid.class);]]>"msgstr ""#. Tag: para#: configuration.xml:64#, fuzzy, no-c-formatmsgid """Then Hibernate will look for mapping files named <filename>/org/hibernate/""auction/Item.hbm.xml</filename> and <filename>/org/hibernate/auction/Bid.hbm.""xml</filename> in the classpath. This approach eliminates any hardcoded ""filenames."msgstr """Hibernate va rechercher les fichiers de mappings <literal>/org/hibernate/""auction/Item.hbm.xml</literal> et <literal>/org/hibernate/auction/Bid.hbm.""xml</literal> dans le classpath. Cette approche élimine les noms de fichiers ""en dur."#. Tag: para#: configuration.xml:70#, fuzzy, no-c-formatmsgid """A <classname>org.hibernate.cfg.Configuration</classname> also allows you to ""specify configuration properties:"msgstr """Une <literal>Configuration</literal> vous permet également de préciser des ""propriétés de configuration :"#. Tag: programlisting#: configuration.xml:75#, no-c-formatmsgid """<![CDATA[Configuration cfg = new Configuration()\n"" .addClass(org.hibernate.auction.Item.class)\n"" .addClass(org.hibernate.auction.Bid.class)\n"" .setProperty(\"hibernate.dialect\", \"org.hibernate.dialect.""MySQLInnoDBDialect\")\n"" .setProperty(\"hibernate.connection.datasource\", \"java:comp/env/jdbc/""test\")\n"" .setProperty(\"hibernate.order_updates\", \"true\");]]>"msgstr ""#. Tag: para#: configuration.xml:77#, no-c-formatmsgid """This is not the only way to pass configuration properties to Hibernate. The ""various options include:"msgstr """Ce n'est pas le seul moyen de passer des propriétés de configuration à ""Hibernate. Les différentes options sont :"#. Tag: para#: configuration.xml:84#, fuzzy, no-c-formatmsgid """Pass an instance of <classname>java.util.Properties</classname> to ""<literal>Configuration.setProperties()</literal>."msgstr """Passer une instance de <literal>java.util.Properties</literal> à ""<literal>Configuration.setProperties()</literal>."#. Tag: para#: configuration.xml:90#, fuzzy, no-c-formatmsgid """Place a file named <filename>hibernate.properties</filename> in a root ""directory of the classpath."msgstr """Placer <literal>hibernate.properties</literal> dans un répertoire racine du ""classpath"#. Tag: para#: configuration.xml:95#, no-c-formatmsgid """Set <literal>System</literal> properties using <literal>java -""Dproperty=value</literal>."msgstr """Positionner les propriétés <literal>System</literal> en utilisant ""<literal>java -Dproperty=value</literal>."#. Tag: para#: configuration.xml:100#, no-c-formatmsgid """Include <literal><property></literal> elements in <literal>hibernate.""cfg.xml</literal> (discussed later)."msgstr """Inclure des éléments <literal><property></literal> dans le fichier ""<literal>hibernate.cfg.xml</literal> (voir plus loin)."#. Tag: para#: configuration.xml:107#, fuzzy, no-c-formatmsgid """<filename>hibernate.properties</filename> is the easiest approach if you ""want to get started quickly."msgstr """L'utilisation d'<literal>hibernate.properties</literal> est l'approche la ""plus simple si vous voulez démarrer rapidement"#. Tag: para#: configuration.xml:111#, fuzzy, no-c-formatmsgid """The <classname>org.hibernate.cfg.Configuration</classname> is intended as a ""startup-time object, to be discarded once a <literal>SessionFactory</""literal> is created."msgstr """La <literal>Configuration</literal> est un objet de démarrage qui sera ""supprimé une fois qu'une <literal>SessionFactory</literal> aura été créée."#. Tag: title#: configuration.xml:119#, no-c-formatmsgid "Obtaining a SessionFactory"msgstr "Obtenir une SessionFactory"#. Tag: para#: configuration.xml:121#, fuzzy, no-c-formatmsgid """When all mappings have been parsed by the <classname>org.hibernate.cfg.""Configuration</classname>, the application must obtain a factory for ""<interfacename>org.hibernate.Session</interfacename> instances. This factory ""is intended to be shared by all application threads:"msgstr """Une fois que tous les mappings ont été parsés par la <literal>Configuration</""literal>, l'application doit obtenir une fabrique d'instances de ""<literal>Session</literal>. Cette fabrique sera partagée entre tous les ""threads de l'application :"#. Tag: programlisting#: configuration.xml:127#, no-c-formatmsgid "<![CDATA[SessionFactory sessions = cfg.buildSessionFactory();]]>"msgstr ""#. Tag: para#: configuration.xml:129#, fuzzy, no-c-formatmsgid """Hibernate does allow your application to instantiate more than one ""<interfacename>org.hibernate.SessionFactory</interfacename>. This is useful ""if you are using more than one database."msgstr """Hibernate permet à votre application d'instancier plus d'une ""<literal>SessionFactory</literal>. Cela est pratique lorsque vous utilisez ""plus d'une base de données."#. Tag: title#: configuration.xml:138#, no-c-formatmsgid "JDBC connections"msgstr "Connexions JDBC"#. Tag: para#: configuration.xml:140#, fuzzy, no-c-formatmsgid """Usually, you want to have the <interfacename>org.hibernate.SessionFactory</""interfacename> create and pool JDBC connections for you. If you take this ""approach, opening a <interfacename>org.hibernate.Session</interfacename> is ""as simple as:"msgstr """Habituellement, vous voulez que la <literal>SessionFactory</literal> crée ""les connexions JDBC et les mette dans un pool pour vous. Si vous suivez ""cette approche, ouvrir une <literal>Session</literal> est aussi simple que :"#. Tag: programlisting#: configuration.xml:146#, no-c-formatmsgid """<![CDATA[Session session = sessions.openSession(); // open a new Session]]>"msgstr ""#. Tag: para#: configuration.xml:148#, no-c-formatmsgid """As soon as you do something that requires access to the database, a JDBC ""connection will be obtained from the pool."msgstr """Dès que vous ferez quelquechose qui requiert un accès à la base de données, ""une connexion JDBC sera récupérée dans le pool."#. Tag: para#: configuration.xml:153#, fuzzy, no-c-formatmsgid """For this to work, we need to pass some JDBC connection properties to ""Hibernate. All Hibernate property names and semantics are defined on the ""class <classname>org.hibernate.cfg.Environment</classname>. We will now ""describe the most important settings for JDBC connection configuration."msgstr """Pour faire cela, il faut passer les propriétés de la connexion JDBC à ""Hibernate. Tous les noms des propriétés Hibernate et leur signification sont ""définies dans la classe <literal>org.hibernate.cfg.Environment</literal>. ""Nous allons maintenant décrire les paramètres de configuration des ""connexions JDBC les plus importants."#. Tag: para#: configuration.xml:159#, fuzzy, no-c-formatmsgid """Hibernate will obtain (and pool) connections using <classname>java.sql.""DriverManager</classname> if you set the following properties:"msgstr """Hibernate obtiendra des connexions (et les mettra dans un pool) en utilisant ""<literal>java.sql.DriverManager</literal> si vous positionnez les paramètres ""de la manière suivante :"#. Tag: title#: configuration.xml:165#, no-c-formatmsgid "Hibernate JDBC Properties"msgstr "Propriétés JDBC d'Hibernate"#. Tag: entry#: configuration.xml:171 configuration.xml:257 configuration.xml:353#: configuration.xml:548 configuration.xml:743 configuration.xml:850#: configuration.xml:938#, fuzzy, no-c-formatmsgid "Property name"msgstr """#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Nom de la propriété\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Nom d'une propriété\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Nom de la propriété\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Nom de la propriété\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Nom de la propriété\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Nom de la propriété\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Nom de la propriété"#. Tag: entry#: configuration.xml:172 configuration.xml:258 configuration.xml:354#: configuration.xml:549 configuration.xml:744 configuration.xml:851#: configuration.xml:939#, fuzzy, no-c-formatmsgid "Purpose"msgstr """#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Fonction\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""fonction\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Fonction\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Fonction\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Fonction\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n""Fonction\n""#-#-#-#-# - (PACKAGE VERSION) #-#-#-#-#\n"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -