HHH-6933 - Developer's guide has strange markup in Chapter 1
This commit is contained in:
parent
8d6a07f611
commit
e0f7d8fb17
|
@ -101,25 +101,31 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<title>Obtaining a JDBC connection</title>
|
<title>Obtaining a JDBC connection</title>
|
||||||
<para>
|
<para>
|
||||||
After you configure the <xref linkend="hibernate-jdbc-properties" />, you can use method
|
After you configure the <xref linkend="hibernate-jdbc-properties" />, you can use method
|
||||||
<methodname>openSession</methodname> of class <classname>org.hibernate.SessionFactory</classname> to open
|
<methodname>openSession</methodname> of class <classname>org.hibernate.SessionFactory</classname> to open
|
||||||
sessions. <programlisting language="Java" role="JAVA"><xi:include href="extras/opening_a_session.java"
|
sessions. Sessions will obtain JDBC connections as needed based on the provided configuration.
|
||||||
xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" /></programlisting>
|
</para>
|
||||||
</para>
|
<example>
|
||||||
<itemizedlist id="hibernate-jdbc-properties">
|
<title>Specifying configuration properties</title>
|
||||||
<title>Most important Hibernate JDBC properties</title>
|
<programlisting language="Java" role="JAVA">
|
||||||
<listitem><para>hibernate.connection.driver_class</para></listitem>
|
<xi:include href="extras/opening_a_session.java" xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" />
|
||||||
<listitem><para>hibernate.connection.url</para></listitem>
|
</programlisting>
|
||||||
<listitem><para>hibernate.connection.username</para></listitem>
|
</example>
|
||||||
<listitem><para>hibernate.connection.password</para></listitem>
|
<itemizedlist id="hibernate-jdbc-properties">
|
||||||
<listitem><para>hibernate.connection.pool_size</para></listitem>
|
<title>Most important Hibernate JDBC properties</title>
|
||||||
</itemizedlist>
|
<listitem><para>hibernate.connection.driver_class</para></listitem>
|
||||||
<para>
|
<listitem><para>hibernate.connection.url</para></listitem>
|
||||||
All Hibernate property names and semantics are defined in class
|
<listitem><para>hibernate.connection.username</para></listitem>
|
||||||
<classname>org.hibernate.cfg.Environment</classname>. See the Javadoc for a complete listing.
|
<listitem><para>hibernate.connection.password</para></listitem>
|
||||||
</para>
|
<listitem><para>hibernate.connection.pool_size</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
<para>
|
||||||
|
All available Hibernate settings are defined as constants and discussed on the
|
||||||
|
<interfacename>org.hibernate.cfg.AvailableSettings</interfacename> interface. See its source code or
|
||||||
|
JavaDoc for details.
|
||||||
|
</para>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue