⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 architecture.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 2 页
字号:
msgid "detached"msgstr "détaché"#. Tag: para#: architecture.xml:214#, no-c-formatmsgid """The instance was once associated with a persistence context, but that ""context was closed, or the instance was serialized to another process. It ""has a persistent identity and, perhaps, a corrsponding row in the database. ""For detached instances, Hibernate makes no guarantees about the relationship ""between persistent identity and Java identity."msgstr """L'instance a été associée au contexte de persistance mais ce contexte a été ""fermé, ou l'instance a été sérialisée vers un autre processus. Elle possède ""une identité persistante et peut-être un enregistrement correspondant dans ""la base. Pour des instances détachées, Hibernate ne donne aucune garantie ""sur la relation entre l'identité persistante et l'identité Java."#. Tag: title#: architecture.xml:229#, no-c-formatmsgid "JMX Integration"msgstr "Intégration JMX"#. Tag: para#: architecture.xml:231#, no-c-formatmsgid """JMX is the J2EE standard for management of Java components. Hibernate may be ""managed via a JMX standard service. We provide an MBean implementation in ""the distribution, <literal>org.hibernate.jmx.HibernateService</literal>."msgstr """JMX est le standard J2EE de gestion des composants Java. Hibernate peut être ""géré via un service JMX standard. Nous fournissons une implémentation d'un ""MBean dans la distribution : <literal>org.hibernate.jmx.HibernateService</""literal>."#. Tag: para#: architecture.xml:237#, no-c-formatmsgid """For an example how to deploy Hibernate as a JMX service on the JBoss ""Application Server, please see the JBoss User Guide. On JBoss AS, you also ""get these benefits if you deploy using JMX:"msgstr """Pour avoir un exemple sur la manière de déployer Hibernate en tant que ""service JMX dans le serveur d'application JBoss Application Server, référez ""vous au guide utilisateur JBoss (JBoss User Guide). Si vous déployez ""Hibernate via JMX sur JBoss AS, vous aurez également les bénéfices suivants :"#. Tag: para#: architecture.xml:245#, no-c-formatmsgid """<emphasis>Session Management:</emphasis> The Hibernate <literal>Session</""literal>'s life cycle can be automatically bound to the scope of a JTA ""transaction. This means you no longer have to manually open and close the ""<literal>Session</literal>, this becomes the job of a JBoss EJB interceptor. ""You also don't have to worry about transaction demarcation in your code ""anymore (unless you'd like to write a portable persistence layer of course, ""use the optional Hibernate <literal>Transaction</literal> API for this). You ""call the <literal>HibernateContext</literal> to access a <literal>Session</""literal>."msgstr """<emphasis>Gestion de la session :</emphasis> Le cycle de vie de la ""<literal>Session</literal> Hibernate peut être automatiquement limitée à la ""portée d'une transaction JTA. Cela signifie que vous n'avez plus besoin ""d'ouvrir et de fermer la <literal>Session</literal> manuellement, cela ""devient le travail de l'intercepteur EJB de JBoss. Vous n'avez pas non plus ""à vous occuper des démarcations des transactions dans votre code (sauf si ""vous voulez écrire une couche de persistance qui soit portable, dans ce cas ""vous pouvez utiliser l'API optionnelle <literal>Transaction</literal> ""d'Hibernate). Vous appelez l'<literal>HibernateContext</literal> pour ""accéder à la <literal>Session</literal>."#. Tag: para#: architecture.xml:257#, no-c-formatmsgid """<emphasis>HAR deployment:</emphasis> Usually you deploy the Hibernate JMX ""service using a JBoss service deployment descriptor (in an EAR and/or SAR ""file), it supports all the usual configuration options of a Hibernate ""<literal>SessionFactory</literal>. However, you still have to name all your ""mapping files in the deployment descriptor. If you decide to use the ""optional HAR deployment, JBoss will automatically detect all mapping files ""in your HAR file."msgstr """<emphasis>Déploiement HAR :</emphasis> Habituellement vous déployez le ""service JMX Hibernate en utilisant le descripteur de déploiement de JBoss ""(dans un fichier EAR et/ou un SAR), il supporte toutes les options de ""configuration usuelles d'une <literal>SessionFactory</literal> Hibernate. ""Cependant, vous devez toujours nommer tous vos fichiers de mapping dans le ""descripteur de déploiement. Si vous décidez d'utiliser le déploiement ""optionnel sous forme de HAR, JBoss détectera automatiquement tous vos ""fichiers de mapping dans votre fichier HAR."#. Tag: para#: architecture.xml:268#, no-c-formatmsgid """Consult the JBoss AS user guide for more information about these options."msgstr """Consultez le guide d'utilisation de JBoss AS pour plus d'informations sur ""ces options."#. Tag: para#: architecture.xml:272#, no-c-formatmsgid """Another feature available as a JMX service are runtime Hibernate statistics. ""See <xref linkend=\"configuration-optional-statistics\"/>."msgstr """Les statistiques pendant l'exécution d'Hibernate (au runtime) sont une autre ""fonctionnalité disponible en tant que service JMX. Voyez pour cela <xref ""linkend=\"configuration-optional-statistics\"/>."#. Tag: title#: architecture.xml:279#, no-c-formatmsgid "JCA Support"msgstr "Support JCA"#. Tag: para#: architecture.xml:280#, no-c-formatmsgid """Hibernate may also be configured as a JCA connector. Please see the website ""for more details. Please note that Hibernate JCA support is still considered ""experimental."msgstr """Hibernate peut aussi être configuré en tant que connecteur JCA. Référez-vous ""au site web pour de plus amples détails. Il est important de noter que le ""support JCA d'Hibernate est encore considéré comme expérimental."#. Tag: title#: architecture.xml:287#, no-c-formatmsgid "Contextual Sessions"msgstr "Sessions Contextuelles"#. Tag: para#: architecture.xml:288#, no-c-formatmsgid """Most applications using Hibernate need some form of \"contextual\" sessions, ""where a given session is in effect throughout the scope of a given context. ""However, across applications the definition of what constitutes a context is ""typically different; and different contexts define different scopes to the ""notion of current. Applications using Hibernate prior to version 3.0 tended ""to utilize either home-grown <literal>ThreadLocal</literal>-based contextual ""sessions, helper classes such as <literal>HibernateUtil</literal>, or ""utilized third-party frameworks (such as Spring or Pico) which provided ""proxy/interception-based contextual sessions."msgstr """Certaines applications utilisant Hibernate ont besoin d'une sorte de session ""\"contextuelle\", où une session est liée à la portée d'un contexte ""particulier. Cependant, les applications ne définissent pas toutes la notion ""de contexte de la même manière, et différents contextes définissent ""différentes portées à la notion de \"courant\". Les applications à base ""d'Hibernate, versions précédentes à la 3.0 utilisaient généralement un ""principe maison de sessions contextuelles basées sur le ""<literal>ThreadLocal</literal>, ainsi que sur des classes utilitaires comme ""<literal>HibernateUtil</literal>, ou utilisaient des framework tiers (comme ""Spring ou Pico) qui fournissaient des sessions contextuelles basées sur ""l'utilisation de proxy/interception."#. Tag: para#: architecture.xml:297#, no-c-formatmsgid """Starting with version 3.0.1, Hibernate added the <literal>SessionFactory.""getCurrentSession()</literal> method. Initially, this assumed usage of ""<literal>JTA</literal> transactions, where the <literal>JTA</literal> ""transaction defined both the scope and context of a current session. The ""Hibernate team maintains that, given the maturity of the numerous stand-""alone <literal>JTA TransactionManager</literal> implementations out there, ""most (if not all) applications should be using <literal>JTA</literal> ""transaction management whether or not they are deployed into a ""<literal>J2EE</literal> container. Based on that, the <literal>JTA</literal>-""based contextual sessions is all you should ever need to use."msgstr """A partir de la version 3.0.1, Hibernate a ajouté la méthode ""<literal>SessionFactory.getCurrentSession()</literal>. Initialement, cela ""demandait l'usage de transactions <literal>JTA</literal>, où la transaction ""<literal>JTA</literal> définissait la portée et le contexte de la session ""courante. L'équipe Hibernate pense que, étant donnée la maturité des ""implémentations de <literal>JTA TransactionManager</literal> , la plupart ""(sinon toutes) des applications devraient utiliser la gestion des ""transactions par <literal>JTA</literal> qu'elles soient ou non déployées ""dans un conteneur <literal>J2EE</literal>. Par conséquent, vous devriez ""toujours contextualiser vos sessions, si vous en avez besoin, via la méthode ""basée sur JTA."#. Tag: para#: architecture.xml:307#, no-c-formatmsgid """However, as of version 3.1, the processing behind <literal>SessionFactory.""getCurrentSession()</literal> is now pluggable. To that end, a new extension ""interface (<literal>org.hibernate.context.CurrentSessionContext</literal>) ""and a new configuration parameter (<literal>hibernate.""current_session_context_class</literal>) have been added to allow ""pluggability of the scope and context of defining current sessions."msgstr """Cependant, depuis la version 3.1, la logique derrière ""<literal>SessionFactory.getCurrentSession()</literal> est désormais ""branchable. A cette fin, une nouvelle interface d'extension (<literal>org.""hibernate.context.CurrentSessionContext</literal>) et un nouveau paramètre ""de configuration (<literal>hibernate.current_session_context_class</""literal>) ont été ajoutés pour permettre de configurer d'autres moyens de ""définir la portée et le contexte des sessions courantes."#. Tag: para#: architecture.xml:314#, no-c-formatmsgid """See the Javadocs for the <literal>org.hibernate.context.""CurrentSessionContext</literal> interface for a detailed discussion of its ""contract. It defines a single method, <literal>currentSession()</literal>, ""by which the implementation is responsible for tracking the current ""contextual session. Out-of-the-box, Hibernate comes with three ""implementations of this interface."msgstr """Allez voir les Javadocs de l'interface <literal>org.hibernate.context.""CurrentSessionContext</literal> pour une description détaillée de son ""contrat. Elle définit une seule méthode, <literal>currentSession()</""literal>, depuis laquelle l'implémentation est responsable de traquer la ""session courante du contexte. Hibernate fournit deux implémentation de cette ""interface."#. Tag: para#: architecture.xml:324#, no-c-formatmsgid """<literal>org.hibernate.context.JTASessionContext</literal> - current ""sessions are tracked and scoped by a <literal>JTA</literal> transaction. The ""processing here is exactly the same as in the older JTA-only approach. See ""the Javadocs for details."msgstr """<literal>org.hibernate.context.JTASessionContext</literal> - les sessions ""courantes sont associées à une transaction <literal>JTA</literal>. La ""logique est la même que l'ancienne approche basée sur JTA. Voir les javadocs ""pour les détails."#. Tag: para#: architecture.xml:332#, no-c-formatmsgid """<literal>org.hibernate.context.ThreadLocalSessionContext</literal> - current ""sessions are tracked by thread of execution. Again, see the Javadocs for ""details."msgstr """<literal>org.hibernate.context.ThreadLocalSessionContext</literal> - les ""sessions courantes sont associées au thread d'exécution. Voir les javadocs ""pour les détails."#. Tag: para#: architecture.xml:338#, no-c-formatmsgid """<literal>org.hibernate.context.ManagedSessionContext</literal> - current ""sessions are tracked by thread of execution. However, you are responsible to ""bind and unbind a <literal>Session</literal> instance with static methods on ""this class, it does never open, flush, or close a <literal>Session</literal>."msgstr """<literal>org.hibernate.context.ManagedSessionContext</literal> - current ""sessions are tracked by thread of execution. However, you are responsible to ""bind and unbind a <literal>Session</literal> instance with static methods on ""this class, it does never open, flush, or close a <literal>Session</literal>."#. Tag: para#: architecture.xml:347#, no-c-formatmsgid """The first two implementations provide a \"one session - one database ""transaction\" programming model, also known and used as <emphasis>session-""per-request</emphasis>. The beginning and end of a Hibernate session is ""defined by the duration of a database transaction. If you use programatic ""transaction demarcation in plain JSE without JTA, you are adviced to use the ""Hibernate <literal>Transaction</literal> API to hide the underlying ""transaction system from your code. If you use JTA, use the JTA interfaces to ""demarcate transactions. If you execute in an EJB container that supports ""CMT, transaction boundaries are defined declaratively and you don't need any ""transaction or session demarcation operations in your code. Refer to <xref ""linkend=\"transactions\"/> for more information and code examples."msgstr """Les deux implémentations fournissent un modèle de programmation de type ""\"une session - une transaction à la base de données\", aussi connu sous le ""nom de <emphasis>session-per-request</emphasis>. Le début et la fin d'une ""session Hibernate sont définis par la durée d'une transaction de base de ""données. Si vous utilisez une démarcation programmatique de la transaction ""(par exemple sous J2SE ou JTA/UserTransaction/BMT), nous vous conseillons ""d'utiliser l'API Hibernate <literal>Transaction</literal> pour masquer le ""système de transaction utilisé. Si vous exécutez sous un conteneur EJB qui ""supporte CMT, vous n'avez besoin d'aucune opérations de démarcations de ""session ou transaction dans votre code puisque tout est géré de manière ""déclarative. Référez vous à <xref linkend=\"transactions\"/> pour plus ""d'informations et des exemples de code."#. Tag: para#: architecture.xml:359#, no-c-formatmsgid """The <literal>hibernate.current_session_context_class</literal> configuration ""parameter defines which <literal>org.hibernate.context.""CurrentSessionContext</literal> implementation should be used. Note that for ""backwards compatibility, if this config param is not set but a <literal>org.""hibernate.transaction.TransactionManagerLookup</literal> is configured, ""Hibernate will use the <literal>org.hibernate.context.JTASessionContext</""literal>. Typically, the value of this parameter would just name the ""implementation class to use; for the three out-of-the-box implementations, ""however, there are three corresponding short names, \"jta\", \"thread\", and ""\"managed\"."msgstr """Le paramètre de configuration <literal>hibernate.""current_session_context_class</literal> définit quelle implémentation de ""<literal>org.hibernate.context.CurrentSessionContext</literal> doit être ""utilisée. Notez que pour assurer la compatibilité avec les versions ""précédentes, si ce paramètre n'est pas défini mais qu'un <literal>org.""hibernate.transaction.TransactionManagerLookup</literal> est configuré, ""Hibernate utilisera le <literal>org.hibernate.context.JTASessionContext</""literal>. La valeur de ce paramètre devrait juste nommer la classe ""d'implémentation à utiliser, pour les deux implémentations fournies, il y a ""cependant deux alias correspondant: \"jta\" et \"thread\"."

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -