Hibernate SVN: r20257 - in search/trunk: hibernate-search and 3 other directories.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2010-08-24 13:16:06 -0400 (Tue, 24 Aug 2010)
New Revision: 20257
Modified:
search/trunk/hibernate-search-archetype/pom.xml
search/trunk/hibernate-search-integrationtest/pom.xml
search/trunk/hibernate-search-testing/pom.xml
search/trunk/hibernate-search/pom.xml
search/trunk/pom.xml
Log:
[maven-release-plugin] prepare for next development iteration
Modified: search/trunk/hibernate-search/pom.xml
===================================================================
--- search/trunk/hibernate-search/pom.xml 2010-08-24 17:15:52 UTC (rev 20256)
+++ search/trunk/hibernate-search/pom.xml 2010-08-24 17:16:06 UTC (rev 20257)
@@ -28,7 +28,7 @@
<parent>
<artifactId>hibernate-search-parent</artifactId>
<groupId>org.hibernate</groupId>
- <version>3.3.0.Beta1</version>
+ <version>3.3.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: search/trunk/hibernate-search-archetype/pom.xml
===================================================================
--- search/trunk/hibernate-search-archetype/pom.xml 2010-08-24 17:15:52 UTC (rev 20256)
+++ search/trunk/hibernate-search-archetype/pom.xml 2010-08-24 17:16:06 UTC (rev 20257)
@@ -10,7 +10,7 @@
<parent>
<artifactId>hibernate-search-parent</artifactId>
<groupId>org.hibernate</groupId>
- <version>3.3.0.Beta1</version>
+ <version>3.3.0-SNAPSHOT</version>
</parent>
<groupId>com.example</groupId>
Modified: search/trunk/hibernate-search-integrationtest/pom.xml
===================================================================
--- search/trunk/hibernate-search-integrationtest/pom.xml 2010-08-24 17:15:52 UTC (rev 20256)
+++ search/trunk/hibernate-search-integrationtest/pom.xml 2010-08-24 17:16:06 UTC (rev 20257)
@@ -6,7 +6,7 @@
<parent>
<artifactId>hibernate-search-parent</artifactId>
<groupId>org.hibernate</groupId>
- <version>3.3.0.Beta1</version>
+ <version>3.3.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: search/trunk/hibernate-search-testing/pom.xml
===================================================================
--- search/trunk/hibernate-search-testing/pom.xml 2010-08-24 17:15:52 UTC (rev 20256)
+++ search/trunk/hibernate-search-testing/pom.xml 2010-08-24 17:16:06 UTC (rev 20257)
@@ -28,7 +28,7 @@
<parent>
<artifactId>hibernate-search-parent</artifactId>
<groupId>org.hibernate</groupId>
- <version>3.3.0.Beta1</version>
+ <version>3.3.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: search/trunk/pom.xml
===================================================================
--- search/trunk/pom.xml 2010-08-24 17:15:52 UTC (rev 20256)
+++ search/trunk/pom.xml 2010-08-24 17:16:06 UTC (rev 20257)
@@ -27,7 +27,7 @@
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-parent</artifactId>
- <version>3.3.0.Beta1</version>
+ <version>3.3.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Hibernate Search Aggregator</name>
@@ -49,9 +49,9 @@
</issueManagement>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/hibernate/search/tags/v3_3_0_Beta1</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/hibernate/search/tags/v3_3_0_Beta1</developerConnection>
- <url>http://fisheye.jboss.com/browse/Hibernate/search/tags/v3_3_0_Beta1</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/hibernate/search/trunk</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/hibernate/search/trunk</developerConnection>
+ <url>http://fisheye.jboss.com/browse/Hibernate/search/trunk</url>
</scm>
<organization>
14 years, 6 months
Hibernate SVN: r20256 - search/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2010-08-24 13:15:52 -0400 (Tue, 24 Aug 2010)
New Revision: 20256
Added:
search/tags/v3_3_0_Beta1/
Log:
[maven-release-plugin] copy for tag v3_3_0_Beta1
Copied: search/tags/v3_3_0_Beta1 (from rev 20254, search/trunk)
14 years, 6 months
Hibernate SVN: r20255 - in core/trunk/documentation/quickstart/src/main/docbook/en-US/content: extras/examples/annotations/org/hibernate/tutorial/annotations and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-08-24 13:15:42 -0400 (Tue, 24 Aug 2010)
New Revision: 20255
Added:
core/trunk/documentation/quickstart/src/main/docbook/en-US/content/extras/examples/annotations/org/hibernate/tutorial/annotations/EventManager.java
Modified:
core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_annotations.xml
core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_native.xml
Log:
HHH-5444 - Write annotations tutorial chapter
Copied: core/trunk/documentation/quickstart/src/main/docbook/en-US/content/extras/examples/annotations/org/hibernate/tutorial/annotations/EventManager.java (from rev 20248, core/trunk/documentation/quickstart/src/main/docbook/en-US/content/extras/examples/hbm/org/hibernate/tutorial/hbm/EventManager.java)
===================================================================
--- core/trunk/documentation/quickstart/src/main/docbook/en-US/content/extras/examples/annotations/org/hibernate/tutorial/annotations/EventManager.java (rev 0)
+++ core/trunk/documentation/quickstart/src/main/docbook/en-US/content/extras/examples/annotations/org/hibernate/tutorial/annotations/EventManager.java 2010-08-24 17:15:42 UTC (rev 20255)
@@ -0,0 +1,87 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2010, Red Hat Inc. or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors. All third-party contributions are
+ * distributed under license by Red Hat Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+package org.hibernate.tutorial.annotations;
+
+import org.hibernate.cfg.Configuration;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+
+import java.util.Date;
+import java.util.List;
+
+public class EventManager {
+ private final SessionFactory sessionFactory;
+
+ public static void main(String[] args) {
+ EventManager eventManager = new EventManager();
+
+ if ( args[0].equals( "store" ) ) {
+ eventManager.createAndStoreEvent( "My Event", new Date() );
+ }
+ else if (args[0].equals("list")) {
+ List events = eventManager.listEvents();
+ for (int i = 0; i < events.size(); i++) {
+ Event theEvent = (Event) events.get(i);
+ System.out.println(
+ "Event: " + theEvent.getTitle()
+ + " Time: " + theEvent.getDate()
+ );
+ }
+ }
+
+ eventManager.release();
+ }
+
+ public EventManager() {
+ sessionFactory = new Configuration()
+ .configure() // configures settings from hibernate.cfg.xml
+ .buildSessionFactory();
+ }
+
+ public void release() {
+ sessionFactory.close();
+ }
+
+ private void createAndStoreEvent(String title, Date theDate) {
+ Session session = sessionFactory.openSession();
+ session.beginTransaction();
+
+ Event theEvent = new Event();
+ theEvent.setTitle( title );
+ theEvent.setDate( theDate );
+ session.save( theEvent );
+
+ session.getTransaction().commit();
+ session.close();
+ }
+
+ private List listEvents() {
+ Session session = sessionFactory.openSession();
+ session.beginTransaction();
+ List result = session.createQuery("from Event").list();
+ session.getTransaction().commit();
+ session.close();
+ return result;
+ }
+}
\ No newline at end of file
Modified: core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_annotations.xml
===================================================================
--- core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_annotations.xml 2010-08-24 17:15:32 UTC (rev 20254)
+++ core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_annotations.xml 2010-08-24 17:15:42 UTC (rev 20255)
@@ -11,12 +11,10 @@
<title>Create the Maven POM file</title>
<para>
Create a file named <filename>pom.xml</filename> in the root of your project directory, containing
- the text in<xref linkend="hibernate-gsg-tutorial-annotations-pom-ex1"/>.
+ the text in <xref linkend="hibernate-gsg-tutorial-annotations-pom-ex1"/>.
</para>
<example id="hibernate-gsg-tutorial-annotations-pom-ex1">
- <title>
- <filename>pom.xml</filename>
- </title>
+ <title><filename>pom.xml</filename></title>
<programlisting role="XML"><xi:include href="extras/examples/annotations/pom.xml" xmlns:xi="http://www.w3.org/2001/XInclude" parse="text"/></programlisting>
</example>
</step>
@@ -25,14 +23,12 @@
<title>Create the annotated entity Java class</title>
<para>
- Create a file named<filename>src/main/java/org/hibernate/tutorial/annotations/Event.java</filename>,
- containing the text in<xref linkend="hibernate-gsg-tutorial-annotations-entity-ex1"/>.
+ Create a file named <filename>src/main/java/org/hibernate/tutorial/annotations/Event.java</filename>,
+ containing the text in <xref linkend="hibernate-gsg-tutorial-annotations-entity-ex1"/>.
</para>
<example id="hibernate-gsg-tutorial-annotations-entity-ex1">
- <title>
- <filename>Entity.java</filename>
- </title>
+ <title><filename>Entity.java</filename></title>
<programlisting role="JAVA"><xi:include href="extras/examples/annotations/org/hibernate/tutorial/annotations/Event.java" xmlns:xi="http://www.w3.org/2001/XInclude" parse="text"/></programlisting>
</example>
<para>
@@ -52,7 +48,8 @@
class as an entity. It's function is essentially the same as the <literal>class</literal>
mapping element we see in <xref linkend="hibernate-gsg-tutorial-native-hbm-xml-ex1"/>.
Additionally the <interfacename>@javax.persistence.Table</interfacename> annotation is
- used to override the default table name annotations would have used (<literal>EVENT</literal>).
+ used to explicitly specify the table name (the default table name would have been
+ <database class="table">EVENT</database>).
</para>
</listitem>
<listitem>
@@ -60,14 +57,6 @@
<interfacename>@javax.persistence.Id</interfacename> marks the property defining the
entity's identifier.
</para>
- <note>
- <para>
- Property-related annotations are allowed on either the field or the getter method.
- However, for a given entity they cannot be mixed. The placement of the
- <interfacename>@javax.persistence.Id</interfacename> indicates where Hibernate
- should expect to find other property-related annotations.
- </para>
- </note>
</listitem>
<!-- todo : example of defining the generator -->
<listitem>
@@ -100,9 +89,57 @@
</para>
</step>
- <!-- the rest of the tutorial "here on out" is the same as from the native + hbm.xml -->
- <!-- todo : is it enough to say that? -->
+ <step id="hibernate-gsg-tutorial-annotations-working">
+ <title>Do stuff</title>
+ <para>
+ Create a file named <filename>src/main/java/org/hibernate/tutorial/annotations/EventManager.java</filename>
+ containing the text in <xref linkend="hibernate-gsg-tutorial-native-working-ex1"/>.
+ </para>
+ <example id="hibernate-gsg-tutorial-native-working-ex1">
+ <title>
+ <filename>EventManager.java</filename>
+ </title>
+ <programlisting role="JAVA"><xi:include href="extras/examples/annotations/org/hibernate/tutorial/annotations/EventManager.java" xmlns:xi="http://www.w3.org/2001/XInclude" parse="text"/></programlisting>
+ </example>
+
+ <para>
+ Refer back to <xref linkend="hibernate-gsg-tutorial-native-working"/> for a discussion
+ </para>
+ </step>
+
+ <step id="hibernate-gsg-tutorial-annotations-compileAndRun">
+ <title>Compile and run the code</title>
+
+ <para>
+ Follow the directions at <xref linkend="hibernate-gsg-tutorial-native-compile"/> and
+ <xref linkend="hibernate-gsg-tutorial-native-running"/> to compile and then run the code. Be sure
+ to reference the <classname>org.hibernate.tutorial.annotations.EventManager</classname> class
+ instead of the <classname>org.hibernate.tutorial.hbm.EventManager</classname> class.
+ </para>
+ </step>
+
</procedure>
+ <section id="hibernate-gsg-tutorial-annotations-further">
+ <title>Take it further!</title>
+ <para>
+ Try the following exercises:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With help of the Developer Guide, add an association to the <classname>Event</classname>
+ entity to model a message thread.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With help of the Developer Guide, add a callback to receive notifications when an
+ <classname>Event</classname> is created, updated or deleted. Try the same with an event listener.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
</chapter>
\ No newline at end of file
Modified: core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_native.xml
===================================================================
--- core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_native.xml 2010-08-24 17:15:32 UTC (rev 20254)
+++ core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_native.xml 2010-08-24 17:15:42 UTC (rev 20255)
@@ -233,7 +233,7 @@
<title>Do stuff</title>
<para>
Create a file named <filename>src/main/java/org/hibernate/tutorial/hbm/EventManager.java</filename>
- with the following contents:
+ containing the text in <xref linkend="hibernate-gsg-tutorial-native-working-ex1"/>.
</para>
<example id="hibernate-gsg-tutorial-native-working-ex1">
@@ -283,10 +283,10 @@
</step>
<step id="hibernate-gsg-tutorial-native-running">
- <title>Running the code</title>
+ <title>Run the code</title>
<para>
To perform a store (leveraging the maven exec plugin):
- <command>mvn exec:java -Dexec.mainClass="org.hibernate.tutorial.native.EventManager" -Dexec.args="store"</command>
+ <command>mvn exec:java -Dexec.mainClass="org.hibernate.tutorial.hbm.EventManager" -Dexec.args="store"</command>
You should see Hibernate starting up and, depending on your configuration, lots of log output. Towards
the end, the following line will be displayed:
<screen>[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) values (?, ?, ?)</screen>
@@ -295,7 +295,7 @@
<para>
To perform a list:
- <command>mvn exec:java -Dexec.mainClass="org.hibernate.tutorial.native.EventManager"-Dexec.args="list"</command>
+ <command>mvn exec:java -Dexec.mainClass="org.hibernate.tutorial.hbm.EventManager"-Dexec.args="list"</command>
</para>
<note>
@@ -307,8 +307,11 @@
</step>
</procedure>
- <para>
- Take it further! Try the following:
+ <section id="hibernate-gsg-tutorial-annotations-further">
+ <title>Take it further!</title>
+ <para>
+ Try the following exercises:
+ </para>
<itemizedlist>
<listitem>
<para>
@@ -322,6 +325,6 @@
</para>
</listitem>
</itemizedlist>
- </para>
+ </section>
</chapter>
\ No newline at end of file
14 years, 6 months
Hibernate SVN: r20254 - in search/trunk: hibernate-search and 3 other directories.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2010-08-24 13:15:32 -0400 (Tue, 24 Aug 2010)
New Revision: 20254
Modified:
search/trunk/hibernate-search-archetype/pom.xml
search/trunk/hibernate-search-integrationtest/pom.xml
search/trunk/hibernate-search-testing/pom.xml
search/trunk/hibernate-search/pom.xml
search/trunk/pom.xml
Log:
[maven-release-plugin] prepare release v3_3_0_Beta1
Modified: search/trunk/hibernate-search/pom.xml
===================================================================
--- search/trunk/hibernate-search/pom.xml 2010-08-24 16:59:32 UTC (rev 20253)
+++ search/trunk/hibernate-search/pom.xml 2010-08-24 17:15:32 UTC (rev 20254)
@@ -28,7 +28,7 @@
<parent>
<artifactId>hibernate-search-parent</artifactId>
<groupId>org.hibernate</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>3.3.0.Beta1</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: search/trunk/hibernate-search-archetype/pom.xml
===================================================================
--- search/trunk/hibernate-search-archetype/pom.xml 2010-08-24 16:59:32 UTC (rev 20253)
+++ search/trunk/hibernate-search-archetype/pom.xml 2010-08-24 17:15:32 UTC (rev 20254)
@@ -10,7 +10,7 @@
<parent>
<artifactId>hibernate-search-parent</artifactId>
<groupId>org.hibernate</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>3.3.0.Beta1</version>
</parent>
<groupId>com.example</groupId>
Modified: search/trunk/hibernate-search-integrationtest/pom.xml
===================================================================
--- search/trunk/hibernate-search-integrationtest/pom.xml 2010-08-24 16:59:32 UTC (rev 20253)
+++ search/trunk/hibernate-search-integrationtest/pom.xml 2010-08-24 17:15:32 UTC (rev 20254)
@@ -6,7 +6,7 @@
<parent>
<artifactId>hibernate-search-parent</artifactId>
<groupId>org.hibernate</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>3.3.0.Beta1</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: search/trunk/hibernate-search-testing/pom.xml
===================================================================
--- search/trunk/hibernate-search-testing/pom.xml 2010-08-24 16:59:32 UTC (rev 20253)
+++ search/trunk/hibernate-search-testing/pom.xml 2010-08-24 17:15:32 UTC (rev 20254)
@@ -28,7 +28,7 @@
<parent>
<artifactId>hibernate-search-parent</artifactId>
<groupId>org.hibernate</groupId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>3.3.0.Beta1</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: search/trunk/pom.xml
===================================================================
--- search/trunk/pom.xml 2010-08-24 16:59:32 UTC (rev 20253)
+++ search/trunk/pom.xml 2010-08-24 17:15:32 UTC (rev 20254)
@@ -22,14 +22,12 @@
~ 51 Franklin Street, Fifth Floor
~ Boston, MA 02110-1301 USA
-->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-parent</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>3.3.0.Beta1</version>
<packaging>pom</packaging>
<name>Hibernate Search Aggregator</name>
@@ -51,9 +49,9 @@
</issueManagement>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/hibernate/search/trunk</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/hibernate/search/trunk</developerConnection>
- <url>http://fisheye.jboss.com/browse/Hibernate/search/trunk</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/hibernate/search/tags/v3_3_0_Beta1</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/hibernate/search/tags/v3_3_0_Beta1</developerConnection>
+ <url>http://fisheye.jboss.com/browse/Hibernate/search/tags/v3_3_0_Beta1</url>
</scm>
<organization>
@@ -493,8 +491,8 @@
<jdbc.driver>org.hsqldb.jdbcDriver</jdbc.driver>
<jdbc.url>jdbc:hsqldb:.</jdbc.url>
<jdbc.user>sa</jdbc.user>
- <jdbc.pass/>
- <jdbc.isolation/>
+ <jdbc.pass />
+ <jdbc.isolation />
</properties>
</profile>
<!--
@@ -521,7 +519,7 @@
<jdbc.url>jdbc:mysql://vmg08.mw.lab.eng.bos.redhat.com/searctru</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -541,7 +539,7 @@
<jdbc.url>jdbc:mysql://vmg02.mw.lab.eng.bos.redhat.com/searctru</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -562,7 +560,7 @@
</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -583,7 +581,7 @@
<jdbc.url>jdbc:postgresql://vmg01.mw.lab.eng.bos.redhat.com:5432:searctru</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -604,7 +602,7 @@
<jdbc.url>jdbc:postgresql://vmg03.mw.lab.eng.bos.redhat.com:5432:searctru</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -624,7 +622,7 @@
<jdbc.url>jdbc:postgresql://notinstalled.lab.eng.bos.redhat.com:5432:searctru</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -655,7 +653,7 @@
<jdbc.url>jdbc:db2://dev32.qa.atl.jboss.com:50000/jbossqa</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -680,7 +678,7 @@
<jdbc.url>jdbc:db2://dev67.qa.atl.jboss.com:50000/jbossqa</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -705,7 +703,7 @@
<jdbc.url>jdbc:db2://vmg06.mw.lab.eng.bos.redhat.com:50000/jbossqa</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -726,7 +724,7 @@
<jdbc.url>jdbc:oracle:thin:@dev20.qa.atl.jboss.com:1521:qa</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -747,7 +745,7 @@
<jdbc.url>jdbc:oracle:thin:@vmg05.mw.lab.eng.bos.redhat.com:1521:qaora10</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -767,7 +765,7 @@
<jdbc.url>jdbc:oracle:thin:@dev04.qa.atl2.redhat.com:1521:qaora11</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -789,7 +787,7 @@
</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
@@ -809,7 +807,7 @@
<jdbc.url>jdbc:sybase:Tds:vmg07.mw.lab.eng.bos.redhat.com:5000/searctru</jdbc.url>
<jdbc.user>searctru</jdbc.user>
<jdbc.pass>searctru</jdbc.pass>
- <jdbc.isolation/>
+ <jdbc.isolation />
</properties>
</profile>
14 years, 6 months
Hibernate SVN: r20253 - in search/trunk: hibernate-search/src/main/docbook/en-US/modules and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2010-08-24 12:59:32 -0400 (Tue, 24 Aug 2010)
New Revision: 20253
Modified:
search/trunk/changelog.txt
search/trunk/hibernate-search/src/main/docbook/en-US/modules/getting-started.xml
search/trunk/readme.txt
Log:
Preparing release
Update changelog, readme and getting-started files
Modified: search/trunk/changelog.txt
===================================================================
--- search/trunk/changelog.txt 2010-08-24 16:58:57 UTC (rev 20252)
+++ search/trunk/changelog.txt 2010-08-24 16:59:32 UTC (rev 20253)
@@ -1,6 +1,31 @@
Hibernate Search Changelog
==========================
+3.3.0.Beta1 (25-08-2010)
+------------------------
+
+** Bug
+ * [HSEARCH-585] - ClassBridgeAndProjectionTest and NestedContainedInTest hang when run against PostgreSQL due to missing transactions
+
+
+** Improvement
+ * [HSEARCH-580] - Copy SoftLimitMRUCache into Hibernate Search codebase to no longer depend on Hibernate Core internals
+ * [HSEARCH-581] - No longer use Hibernate Core's Helper classes: use Commons Annotations Helpers instead
+ * [HSEARCH-582] - Move Query DSL package to org.hibernate.search.query.dsl
+ * [HSEARCH-583] - Add enforcer plugin to Search master pom to enforce JDK 6
+
+** New Feature
+ * [HSEARCH-135] - Create a RAMDirectoryProvider from an existing Lucene FSDirectory
+ * [HSEARCH-278] - Create a Search Statistic JMX Bean
+
+
+** Task
+ * [HSEARCH-562] - Convert or add JBossTS usage to the integrationtest module
+ * [HSEARCH-563] - Document the DSL query language
+ * [HSEARCH-564] - Document the API changes of the semi public APIs
+ * [HSEARCH-584] - Upgrade to Hibernate Core 3.6.0.Beta3
+
+
3.3.0.Alpha1 (26-07-2010)
-------------------------
Modified: search/trunk/hibernate-search/src/main/docbook/en-US/modules/getting-started.xml
===================================================================
--- search/trunk/hibernate-search/src/main/docbook/en-US/modules/getting-started.xml 2010-08-24 16:58:57 UTC (rev 20252)
+++ search/trunk/hibernate-search/src/main/docbook/en-US/modules/getting-started.xml 2010-08-24 16:59:32 UTC (rev 20253)
@@ -25,7 +25,7 @@
-->
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY version "3.3.0.Alpha1">
+<!ENTITY version "3.3.0.Beta1">
]>
<chapter id="getting-started">
<title>Getting started</title>
@@ -63,7 +63,7 @@
<row>
<entry>Hibernate Core</entry>
- <entry>This instructions have been tested against Hibernate 3.5.
+ <entry>This instructions have been tested against Hibernate 3.6.
You will need <literal>hibernate-core.jar</literal> and its
transitive dependencies from the <literal>lib</literal> directory
of the distribution. Refer to <literal>README.txt</literal> in the
@@ -82,7 +82,7 @@
has its own set of annotations (<emphasis>@Indexed, @DocumentId,
@Field,...</emphasis>) for which there exists so far no
alternative configuration. The tutorial is tested against version
- 3.5 of Hibernate Annotations (part of the Hibernate Core
+ 3.6 of Hibernate Annotations (part of the Hibernate Core
distribution).</entry>
</row>
</tbody>
Modified: search/trunk/readme.txt
===================================================================
--- search/trunk/readme.txt 2010-08-24 16:58:57 UTC (rev 20252)
+++ search/trunk/readme.txt 2010-08-24 16:59:32 UTC (rev 20253)
@@ -1,6 +1,6 @@
Hibernate Search
==================================================
-Version: 3.3.0.Alpha1, 26.07.2010
+Version: 3.3.0.Beta1, 25.08.2010
Description
-----------
14 years, 6 months
Hibernate SVN: r20252 - search/trunk/hibernate-search/src/main/java/org/hibernate/search/spi.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2010-08-24 12:58:57 -0400 (Tue, 24 Aug 2010)
New Revision: 20252
Modified:
search/trunk/hibernate-search/src/main/java/org/hibernate/search/spi/WorkerBuildContext.java
Log:
Add some JavaDoc on setBackEndQueueProcessorFactory
Modified: search/trunk/hibernate-search/src/main/java/org/hibernate/search/spi/WorkerBuildContext.java
===================================================================
--- search/trunk/hibernate-search/src/main/java/org/hibernate/search/spi/WorkerBuildContext.java 2010-08-24 16:58:21 UTC (rev 20251)
+++ search/trunk/hibernate-search/src/main/java/org/hibernate/search/spi/WorkerBuildContext.java 2010-08-24 16:58:57 UTC (rev 20252)
@@ -41,6 +41,10 @@
* @author Emmanuel Bernard
*/
public interface WorkerBuildContext extends BuildContext {
+ /**
+ * Register the backend queue processor factory. Should only be called by the Worker implementation.
+ * TODO should we move it to a different interface
+ */
void setBackendQueueProcessorFactory(BackendQueueProcessorFactory backendQueueProcessorFactory);
OptimizerStrategy getOptimizerStrategy(DirectoryProvider<?> provider);
14 years, 6 months
Hibernate SVN: r20251 - search/trunk/hibernate-search/src/main/java/org/hibernate/search/spi.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2010-08-24 12:58:21 -0400 (Tue, 24 Aug 2010)
New Revision: 20251
Modified:
search/trunk/hibernate-search/src/main/java/org/hibernate/search/spi/BuildContext.java
Log:
Fix typo in JavaDoc
Modified: search/trunk/hibernate-search/src/main/java/org/hibernate/search/spi/BuildContext.java
===================================================================
--- search/trunk/hibernate-search/src/main/java/org/hibernate/search/spi/BuildContext.java 2010-08-24 16:09:07 UTC (rev 20250)
+++ search/trunk/hibernate-search/src/main/java/org/hibernate/search/spi/BuildContext.java 2010-08-24 16:58:21 UTC (rev 20251)
@@ -13,7 +13,7 @@
*/
public interface BuildContext {
/**
- * Returns the SessionFactoryImplementor instance. Do not use until after the initialize and/or stard method is
+ * Returns the SessionFactoryImplementor instance. Do not use until after the initialize and/or start method is
* fully executed.
* Implementations should not cache values provided by the SessionFactoryImplementor but rather access them
* each time: when the configuration is dynamically updated, new changes are available through the
14 years, 6 months
Hibernate SVN: r20250 - in search/trunk/hibernate-search/src/test/java/org/hibernate/search/test: embedded/nested/containedIn and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2010-08-24 12:09:07 -0400 (Tue, 24 Aug 2010)
New Revision: 20250
Modified:
search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/bridge/ClassBridgeAndProjectionTest.java
search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/embedded/nested/containedIn/NestedContainedInTest.java
Log:
HSEARCH-585 Made the tests work against Postgres which needs a transaction
Modified: search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/bridge/ClassBridgeAndProjectionTest.java
===================================================================
--- search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/bridge/ClassBridgeAndProjectionTest.java 2010-08-24 15:45:32 UTC (rev 20249)
+++ search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/bridge/ClassBridgeAndProjectionTest.java 2010-08-24 16:09:07 UTC (rev 20250)
@@ -1,6 +1,33 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2010, Red Hat, Inc. and/or its affiliates or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors. All third-party contributions are
+ * distributed under license by Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
package org.hibernate.search.test.bridge;
+import java.util.List;
+
import org.apache.lucene.queryParser.QueryParser;
+
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.search.FullTextQuery;
@@ -8,67 +35,67 @@
import org.hibernate.search.Search;
import org.hibernate.search.test.SearchTestCase;
-import java.util.List;
-
/**
* @author Emmanuel Bernard
*/
-public class ClassBridgeAndProjectionTest extends SearchTestCase {
+public class ClassBridgeAndProjectionTest extends SearchTestCase {
- public void testClassBridgeProjection() throws Exception {
- Session s = openSession();
- Transaction tx = s.beginTransaction();
+ public void testClassBridgeProjection() throws Exception {
+ Session s = openSession();
+ Transaction tx = s.beginTransaction();
- // create entities
- Teacher teacher = new Teacher();
- teacher.setName("John Smith");
- s.persist(teacher);
+ // create entities
+ Teacher teacher = new Teacher();
+ teacher.setName( "John Smith" );
+ s.persist( teacher );
- Student student1 = new Student();
- student1.setGrade("foo");
- student1.setName("Jack Miller");
- student1.setTeacher(teacher);
- teacher.getStudents().add(student1);
- s.persist(student1);
+ Student student1 = new Student();
+ student1.setGrade( "foo" );
+ student1.setName( "Jack Miller" );
+ student1.setTeacher( teacher );
+ teacher.getStudents().add( student1 );
+ s.persist( student1 );
- Student student2 = new Student();
- student2.setGrade("bar");
- student2.setName("Steve Marshall");
- student2.setTeacher(teacher);
- teacher.getStudents().add(student2);
- s.persist(student2);
+ Student student2 = new Student();
+ student2.setGrade( "bar" );
+ student2.setName( "Steve Marshall" );
+ student2.setTeacher( teacher );
+ teacher.getStudents().add( student2 );
+ s.persist( student2 );
- tx.commit();
+ tx.commit();
- // test query without projection
- FullTextSession ftSession = Search.getFullTextSession( s );
- QueryParser parser = new QueryParser(
- getTargetLuceneVersion(),
- "name",
- standardAnalyzer );
- FullTextQuery query = ftSession.createFullTextQuery(parser.parse("name:John"), Teacher.class);
- List results = query.list();
- assertNotNull(results);
- assertTrue(results.size() == 1);
- assertTrue(((Teacher) results.get(0)).getStudents().size() == 2);
+ tx = s.beginTransaction();
+ // test query without projection
+ FullTextSession ftSession = Search.getFullTextSession( s );
+ QueryParser parser = new QueryParser(
+ getTargetLuceneVersion(),
+ "name",
+ standardAnalyzer
+ );
+ FullTextQuery query = ftSession.createFullTextQuery( parser.parse( "name:John" ), Teacher.class );
+ List results = query.list();
+ assertNotNull( results );
+ assertTrue( results.size() == 1 );
+ assertTrue( ( ( Teacher ) results.get( 0 ) ).getStudents().size() == 2 );
- // now test with projection
- query.setProjection("amount_of_students");
- results = query.list();
- assertNotNull(results);
- assertTrue(results.size() == 1);
- Object[] firstResult = (Object[]) results.get(0);
- Integer amountStudents = (Integer) firstResult[0];
- assertEquals(new Integer(2), amountStudents);
+ // now test with projection
+ query.setProjection( "amount_of_students" );
+ results = query.list();
+ assertNotNull( results );
+ assertTrue( results.size() == 1 );
+ Object[] firstResult = ( Object[] ) results.get( 0 );
+ Integer amountStudents = ( Integer ) firstResult[0];
+ assertEquals( new Integer( 2 ), amountStudents );
+ tx.commit();
+ s.close();
+ }
- s.close();
- }
-
- @Override
- protected Class<?>[] getAnnotatedClasses() {
- return new Class<?>[] {
- Student.class,
- Teacher.class
- };
- }
+ @Override
+ protected Class<?>[] getAnnotatedClasses() {
+ return new Class<?>[] {
+ Student.class,
+ Teacher.class
+ };
+ }
}
Modified: search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/embedded/nested/containedIn/NestedContainedInTest.java
===================================================================
--- search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/embedded/nested/containedIn/NestedContainedInTest.java 2010-08-24 15:45:32 UTC (rev 20249)
+++ search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/embedded/nested/containedIn/NestedContainedInTest.java 2010-08-24 16:09:07 UTC (rev 20250)
@@ -1,3 +1,27 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2010, Red Hat, Inc. and/or its affiliates or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors. All third-party contributions are
+ * distributed under license by Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ */
+
package org.hibernate.search.test.embedded.nested.containedIn;
import org.apache.lucene.index.Term;
@@ -16,26 +40,25 @@
public class NestedContainedInTest extends SearchTestCase {
public void testAddHelpItem() {
+ openSession();
String tagName = "animal";
createHelpItem( tagName );
- openSession( );
doQuery( tagName );
session.close();
}
public void testChangeTagName() {
-
+ openSession();
String tagName = "animal";
createHelpItem( tagName );
- openSession( );
HelpItem check = doQuery( tagName );
-
Tag tag = check.getTags().get( 0 ).getTag();
- Transaction tx = session.beginTransaction();
String newTagName = "automobile";
tag.setName( newTagName );
+
+ Transaction tx = session.beginTransaction();
session.saveOrUpdate( tag );
tx.commit();
@@ -44,7 +67,6 @@
}
private void createHelpItem(String tagName) {
- openSession( );
Transaction tx = session.beginTransaction();
HelpItem helpItem = new HelpItem();
helpItem.setTitle( "The quick brown fox jumps over the lazy dog." );
@@ -64,10 +86,10 @@
session.save( helpItemTag );
tx.commit();
- session.close();
}
private HelpItem doQuery(String tagName) {
+ Transaction tx = session.beginTransaction();
FullTextSession fullTextSession = Search.getFullTextSession( session );
Query termQuery = new TermQuery( new Term( "tags.tag.name", tagName ) );
FullTextQuery fullTextQuery =
@@ -75,6 +97,7 @@
HelpItem check = ( HelpItem ) fullTextQuery.uniqueResult();
assertNotNull( "No HelpItem with Tag '" + tagName + "' found in Lucene index.", check );
assertTrue( check.getTags().get( 0 ).getTag().getName().equals( tagName ) );
+ tx.commit();
return check;
}
14 years, 6 months
Hibernate SVN: r20249 - core/trunk/documentation/quickstart/src/main/docbook/en-US/content.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-08-24 11:45:32 -0400 (Tue, 24 Aug 2010)
New Revision: 20249
Modified:
core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_native.xml
Log:
HHH-5442 - Write native tutorial chapter
Modified: core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_native.xml
===================================================================
--- core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_native.xml 2010-08-24 14:29:49 UTC (rev 20248)
+++ core/trunk/documentation/quickstart/src/main/docbook/en-US/content/tutorial_native.xml 2010-08-24 15:45:32 UTC (rev 20249)
@@ -40,8 +40,8 @@
<title>Create the entity Java class</title>
<para>
- Create a file named<filename>src/main/java/org/hibernate/tutorial/hbm/Event.java</filename>,
- containing the text in<xref linkend="hibernate-gsg-tutorial-native-entity-ex1"/>.
+ Create a file named <filename>src/main/java/org/hibernate/tutorial/hbm/Event.java</filename>,
+ containing the text in <xref linkend="hibernate-gsg-tutorial-native-entity-ex1"/>.
</para>
<example id="hibernate-gsg-tutorial-native-entity-ex1">
@@ -83,8 +83,8 @@
<title>Create the entity mapping file</title>
<para>
- Create a file named<filename>src/main/resources/org/hibernate/tutorial/native/Event.hbm.xml</filename>,
- with the contents in <xref linkend="hibernate-gsg-tutorial-native-hbm-xml-ex1"/>.
+ Create a file named <filename>src/main/resources/org/hibernate/tutorial/native/Event.hbm.xml</filename>,
+ containing the text in <xref linkend="hibernate-gsg-tutorial-native-hbm-xml-ex1"/>.
</para>
<example id="hibernate-gsg-tutorial-native-hbm-xml-ex1">
@@ -104,8 +104,8 @@
<title>Functions of the <literal>class</literal> element</title>
<listitem>
<para>
- The <literal>class</literal> attribute, combined here with the <literal>package</literal>
- attribute from the containing <literal>hibernate-mapping</literal> element, names the FQN of
+ The <literal>name</literal> attribute (combined here with the <literal>package</literal>
+ attribute from the containing <literal>hibernate-mapping</literal> element) names the FQN of
the class you want to define as an entity.
</para>
</listitem>
@@ -118,32 +118,34 @@
</orderedlist>
<para>
- Instances of <classname>Event</classname> are now mapped to rows in the <literal>EVENTS</literal>
- table. Hibernate uses the <literal>id</literal> element to uniquely identify rows in the table.
+ Instances of the <classname>Event</classname> class are now mapped to rows in the
+ <database class="table">EVENTS</database> table. Hibernate uses the <literal>id</literal> element to
+ uniquely identify rows in the table.
</para>
<important>
<para>
- It is not strictly necessary that the <literal>id</literal> element map to the table's actual
- primary key column(s), but it is the normal convention. Tables mapped in Hibernate do not even
+ It is not strictly necessary for the <literal>id</literal> element to map to the table's actual
+ primary key column(s), but it is the normal convention. Tables mapped in Hibernate do not even
need to define primary keys. However, the Hibernate team <emphasis>strongly</emphasis>
recommends that all schemas define proper referential integrity. Therefore <literal>id</literal>
and <phrase>primary key</phrase> are used interchangeably throughout Hibernate documentation.
</para>
</important>
<para>
- The <literal>id</literal> element here identifies the <literal>EVENT_ID</literal> column as the
- primary key of the <literal>EVENTS</literal> table. It also identifies the <literal>id</literal>
- property of the <classname>Event</classname> class as the property to hold the identifier value.
+ The <literal>id</literal> element here identifies the <database class="field">EVENT_ID</database>
+ column as the primary key of the <database class="table">EVENTS</database> table. It also identifies
+ the <literal>id</literal> property of the <classname>Event</classname> class as the property
+ containing the identifier value.
</para>
<para>
- The important thing to be aware of about the <literal>generator</literal> element nested inside the
- <literal>id</literal> element is that it informs Hibernate which strategy is used to generated primary
- key values for this entity. In this instance, it uses a sequence-like value generation.
+ The <literal>generator</literal> element nested inside the <literal>id</literal> element informs
+ Hibernate about which strategy is used to generated primary key values for this entity. In this
+ example, a sequence-like value generation is used.
</para>
<para>
The two <literal>property</literal> elements declare the remaining two properties of the
<classname>Event</classname> class: <literal>date</literal> and<literal>title</literal>. The
- <literal>date</literal> property mapping include the <literal>column</literal> attribute, but the
+ <literal>date</literal> property mapping includes the <literal>column</literal> attribute, but the
<literal>title</literal> does not. In the absence of a <literal>column</literal> attribute, Hibernate
uses the property name as the column name. This is appropriate for <literal>title</literal>, but since
<literal>date</literal> is a reserved keyword in most databases, you need to specify a non-reserved
@@ -159,18 +161,19 @@
default mapping type for that Java type.
</para>
<para>
- In some cases this automatic detection might not have the default you expect or need, as seen with the
+ In some cases this automatic detection might not chose the default you expect or need, as seen with the
<literal>date</literal> property. Hibernate cannot know if the property, which is of type
- <classname>java.util.Date</classname>, should map to a SQL <literal>DATE</literal>,
- <literal>TIME</literal>, or <literal>TIMESTAMP</literal> datatype. Full date and time information is
- preserved by mapping the property to a <literal>timestamp</literal>
- converter.
+ <classname>java.util.Date</classname>, should map to a SQL <database class="datatype">DATE</database>,
+ <database class="datatype">TIME</database>, or <database class="datatype">TIMESTAMP</database> datatype.
+ Full date and time information is preserved by mapping the property to a <literal>timestamp</literal>
+ converter (which identifies an instance of the class
+ <classname>org.hibernate.type.TimestampType</classname>).
</para>
<tip>
<para>
Hibernate makes this mapping type determination using reflection when the mapping files are
- processed. This can take time and resources. If startup performance is important, consider
+ processed. This process can take time and resources. If startup performance is important, consider
explicitly defining the type to use.
</para>
</tip>
@@ -180,7 +183,8 @@
<title>Create the Hibernate configuration file</title>
<para>
- Create a file named <filename>src/main/resources/hibernate.cfg.xml</filename> with the following contents:
+ Create a file named <filename>src/main/resources/hibernate.cfg.xml</filename> containing the text in
+ <xref linkend="hibernate-gsg-tutorial-native-config-ex1"/>.
</para>
<example id="hibernate-gsg-tutorial-native-config-ex1">
@@ -189,19 +193,20 @@
</example>
<para>
- The first few <literal>property</literal> are defining JDBC connection information. These tutorials
+ The first few <literal>property</literal> elements define JDBC connection information. These tutorials
utilize the H2 in-memory database. So these are all specific to running H2 in its in-memory mode.
The 'connection.pool_size' is used to configure Hibernate's built-in connection pool how many
connections
to pool.
</para>
- <caution>
+ <warning>
<para>
The built-in Hibernate connection pool is in no way intended for production use. It
- lacks several features found on any decent connection pool.
+ lacks several features found on any decent connection pool. See the section "JDBC Connections" in
+ the "Database Access" chapter of the "Hibernate Developer Guide" for further information.
</para>
- </caution>
+ </warning>
<para>
The <literal>dialect</literal> option specifies the particular SQL variant Hibernate should generate.
@@ -210,7 +215,8 @@
<tip>
<para>
In most cases, Hibernate is able to properly determine which dialect to use which is invaluable if
- your application targets multiple databases.
+ your application targets multiple databases. See the section "Database Dialects" in the
+ "Database Access" chapter of the "Hibernate Developer Guide" for further information.
</para>
</tip>
14 years, 6 months
Hibernate SVN: r20248 - core/trunk/parent.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-08-24 10:29:49 -0400 (Tue, 24 Aug 2010)
New Revision: 20248
Modified:
core/trunk/parent/pom.xml
Log:
HHH-5502 - Upgrade to maven-jdocbook-plugin 2.3.2
Modified: core/trunk/parent/pom.xml
===================================================================
--- core/trunk/parent/pom.xml 2010-08-24 13:01:16 UTC (rev 20247)
+++ core/trunk/parent/pom.xml 2010-08-24 14:29:49 UTC (rev 20248)
@@ -217,7 +217,7 @@
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-plugin</artifactId>
- <version>2.3.0</version>
+ <version>2.3.2</version>
<extensions>true</extensions>
<dependencies>
<dependency>
14 years, 6 months