Hibernate SVN: r20267 - core/trunk/core/src/main/java/org/hibernate/bytecode/util.
by hibernate-commits@lists.jboss.org
Author: steve.ebersole(a)jboss.com
Date: 2010-08-26 13:53:24 -0400 (Thu, 26 Aug 2010)
New Revision: 20267
Modified:
core/trunk/core/src/main/java/org/hibernate/bytecode/util/ByteCodeHelper.java
Log:
HHH-5453 - ByteCodeHelper.readByteCode won't load classes bigger than a constant size
Modified: core/trunk/core/src/main/java/org/hibernate/bytecode/util/ByteCodeHelper.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/bytecode/util/ByteCodeHelper.java 2010-08-26 09:11:25 UTC (rev 20266)
+++ core/trunk/core/src/main/java/org/hibernate/bytecode/util/ByteCodeHelper.java 2010-08-26 17:53:24 UTC (rev 20267)
@@ -1,10 +1,10 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
- * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * 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 Middleware LLC.
+ * 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
@@ -20,7 +20,6 @@
* Free Software Foundation, Inc.
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301 USA
- *
*/
package org.hibernate.bytecode.util;
@@ -46,9 +45,11 @@
* <p/>
* The stream is closed within this method!
*
- * @param inputStream
- * @return
- * @throws IOException
+ * @param inputStream The stream containing the class binary; null will lead to an {@link IOException}
+ *
+ * @return The read bytes
+ *
+ * @throws IOException Indicates a problem accessing the given stream.
*/
public static byte[] readByteCode(InputStream inputStream) throws IOException {
if ( inputStream == null ) {
@@ -57,19 +58,24 @@
byte[] buffer = new byte[409600];
byte[] classBytes = new byte[0];
- int r = 0;
try {
- r = inputStream.read( buffer );
+ int r = inputStream.read( buffer );
while ( r >= buffer.length ) {
byte[] temp = new byte[ classBytes.length + buffer.length ];
+ // copy any previously read bytes into the temp array
System.arraycopy( classBytes, 0, temp, 0, classBytes.length );
+ // copy the just read bytes into the temp array (after the previously read)
System.arraycopy( buffer, 0, temp, classBytes.length, buffer.length );
classBytes = temp;
+ // read the next set of bytes into buffer
+ r = inputStream.read( buffer );
}
if ( r != -1 ) {
byte[] temp = new byte[ classBytes.length + r ];
+ // copy any previously read bytes into the temp array
System.arraycopy( classBytes, 0, temp, 0, classBytes.length );
+ // copy the just read bytes into the temp array (after the previously read)
System.arraycopy( buffer, 0, temp, classBytes.length, r );
classBytes = temp;
}
@@ -86,10 +92,28 @@
return classBytes;
}
+ /**
+ * Read class definition from a file.
+ *
+ * @param file The file to read.
+ *
+ * @return The class bytes
+ *
+ * @throws IOException Indicates a problem accessing the given stream.
+ */
public static byte[] readByteCode(File file) throws IOException {
return ByteCodeHelper.readByteCode( new FileInputStream( file ) );
}
+ /**
+ * Read class definition a zip (jar) file entry.
+ *
+ * @param zip The zip entry stream.
+ *
+ * @return The class bytes
+ *
+ * @throws IOException Indicates a problem accessing the given stream.
+ */
public static byte[] readByteCode(ZipInputStream zip) throws IOException {
ByteArrayOutputStream bout = new ByteArrayOutputStream();
InputStream in = new BufferedInputStream( zip );
13 years, 7 months
Hibernate SVN: r20266 - search/trunk.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2010-08-26 05:11:25 -0400 (Thu, 26 Aug 2010)
New Revision: 20266
Modified:
search/trunk/pom.xml
Log:
HSEARCH-590 update test db profile id against dballocator's schema and update jdbc driver version
Modified: search/trunk/pom.xml
===================================================================
--- search/trunk/pom.xml 2010-08-26 08:10:11 UTC (rev 20265)
+++ search/trunk/pom.xml 2010-08-26 09:11:25 UTC (rev 20266)
@@ -505,7 +505,7 @@
<!-- The MySQL 5 test envionment -->
<profile>
- <id>mysql5</id>
+ <id>mysql50</id>
<dependencies>
<dependency>
<groupId>mysql</groupId>
@@ -566,13 +566,13 @@
<!-- The PostgreSQL 8.2.4 test envionment -->
<profile>
- <id>postgresql824</id>
+ <id>postgresql82</id>
<dependencies>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
- <version>8.2-504</version>
- <classifier>jdbc3</classifier>
+ <version>8.4-701</version>
+ <classifier>jdbc4</classifier>
</dependency>
</dependencies>
<properties>
@@ -587,13 +587,13 @@
<!-- The PostgreSQL 8.3.7 test environment -->
<profile>
- <id>postgresql837</id>
+ <id>postgresql83</id>
<dependencies>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
- <version>8.2-504</version>
- <classifier>jdbc3</classifier>
+ <version>8.4-701</version>
+ <classifier>jdbc4</classifier>
</dependency>
</dependencies>
<properties>
@@ -659,7 +659,7 @@
<!-- The DB2 9.1 test envionment (using 9x drivers)-->
<profile>
- <id>db2v91</id>
+ <id>db2-91</id>
<dependencies>
<dependency>
<groupId>com.ibm</groupId>
@@ -684,7 +684,7 @@
<!-- The DB2 9.7 test envionment (using 9x drivers)-->
<profile>
- <id>db2v97</id>
+ <id>db2-97</id>
<dependencies>
<dependency>
<groupId>com.ibm</groupId>
@@ -819,6 +819,7 @@
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>msjdbc</artifactId>
<version>2.0.1008.2</version>
+ <classifier>4</classifier>
</dependency>
</dependencies>
<properties>
@@ -839,6 +840,7 @@
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>msjdbc</artifactId>
<version>2.0.1008.2</version>
+ <classifier>4</classifier>
</dependency>
</dependencies>
<properties>
13 years, 7 months
Hibernate SVN: r20265 - core/trunk/parent.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2010-08-26 04:10:11 -0400 (Thu, 26 Aug 2010)
New Revision: 20265
Modified:
core/trunk/parent/pom.xml
Log:
HHH-5506 rollback maven-jdocbook-plugin to 2.3.0
Modified: core/trunk/parent/pom.xml
===================================================================
--- core/trunk/parent/pom.xml 2010-08-25 16:01:09 UTC (rev 20264)
+++ core/trunk/parent/pom.xml 2010-08-26 08:10:11 UTC (rev 20265)
@@ -217,7 +217,7 @@
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-plugin</artifactId>
- <version>2.3.2</version>
+ <version>2.3.0</version>
<extensions>true</extensions>
<dependencies>
<dependency>
13 years, 7 months
Hibernate SVN: r20264 - core/trunk/parent.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2010-08-25 12:01:09 -0400 (Wed, 25 Aug 2010)
New Revision: 20264
Modified:
core/trunk/parent/pom.xml
Log:
HHH-5505 enable Sybase 15.5 in the test db profile
Modified: core/trunk/parent/pom.xml
===================================================================
--- core/trunk/parent/pom.xml 2010-08-25 15:59:55 UTC (rev 20263)
+++ core/trunk/parent/pom.xml 2010-08-25 16:01:09 UTC (rev 20264)
@@ -934,7 +934,25 @@
<jdbc.isolation/>
</properties>
</profile>
-
+ <profile>
+ <id>sybase155</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.sybase</groupId>
+ <artifactId>jconnect</artifactId>
+ <version>6.0.5</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.SybaseASE15Dialect</db.dialect>
+ <jdbc.driver>com.sybase.jdbc3.jdbc.SybDriver</jdbc.driver>
+ <jdbc.url>jdbc:sybase:Tds:vmg09.mw.lab.eng.bos.redhat.com:5000/hibbrtru?DYNAMIC_PREPARE=true</jdbc.url>
+ <jdbc.user>hibbrtru</jdbc.user>
+ <jdbc.pass>hibbrtru</jdbc.pass>
+ <jdbc.isolation />
+ </properties>
+ </profile>
<!-- The SQLServer2005 (MS JDBC) test envionment -->
<profile>
<id>mssql2005</id>
13 years, 8 months
Hibernate SVN: r20263 - core/branches/Branch_3_5/parent.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2010-08-25 11:59:55 -0400 (Wed, 25 Aug 2010)
New Revision: 20263
Modified:
core/branches/Branch_3_5/parent/pom.xml
Log:
HHH-5505 enable Sybase 15.5 in the test db profile
Modified: core/branches/Branch_3_5/parent/pom.xml
===================================================================
--- core/branches/Branch_3_5/parent/pom.xml 2010-08-25 13:52:33 UTC (rev 20262)
+++ core/branches/Branch_3_5/parent/pom.xml 2010-08-25 15:59:55 UTC (rev 20263)
@@ -896,6 +896,25 @@
</properties>
</profile>
+ <profile>
+ <id>sybase155</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.sybase</groupId>
+ <artifactId>jconnect</artifactId>
+ <version>6.0.5</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <properties>
+ <db.dialect>org.hibernate.dialect.SybaseASE15Dialect</db.dialect>
+ <jdbc.driver>com.sybase.jdbc3.jdbc.SybDriver</jdbc.driver>
+ <jdbc.url>jdbc:sybase:Tds:vmg09.mw.lab.eng.bos.redhat.com:5000/hibbr35?DYNAMIC_PREPARE=true</jdbc.url>
+ <jdbc.user>hibbr35</jdbc.user>
+ <jdbc.pass>hibbr35</jdbc.pass>
+ <jdbc.isolation />
+ </properties>
+ </profile>
<!-- The Sybase 15 test envionment -->
<profile>
<id>sybase15</id>
13 years, 8 months
Hibernate SVN: r20262 - search/trunk/hibernate-search-integrationtest.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2010-08-25 09:52:33 -0400 (Wed, 25 Aug 2010)
New Revision: 20262
Modified:
search/trunk/hibernate-search-integrationtest/pom.xml
Log:
HSEARCH-587 mark the module as not deployed
Modified: search/trunk/hibernate-search-integrationtest/pom.xml
===================================================================
--- search/trunk/hibernate-search-integrationtest/pom.xml 2010-08-25 13:52:12 UTC (rev 20261)
+++ search/trunk/hibernate-search-integrationtest/pom.xml 2010-08-25 13:52:33 UTC (rev 20262)
@@ -18,6 +18,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-release-version>3.0.2.RELEASE</spring-release-version>
+ <maven.deploy.skip>true</maven.deploy.skip>
</properties>
<build>
13 years, 8 months
Hibernate SVN: r20261 - search/trunk/hibernate-search/src/main/docbook/en-US/modules.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2010-08-25 09:52:12 -0400 (Wed, 25 Aug 2010)
New Revision: 20261
Modified:
search/trunk/hibernate-search/src/main/docbook/en-US/modules/query.xml
Log:
HSEARCH-588 Fix incorrect query DSL examples
Modified: search/trunk/hibernate-search/src/main/docbook/en-US/modules/query.xml
===================================================================
--- search/trunk/hibernate-search/src/main/docbook/en-US/modules/query.xml 2010-08-25 10:33:27 UTC (rev 20260)
+++ search/trunk/hibernate-search/src/main/docbook/en-US/modules/query.xml 2010-08-25 13:52:12 UTC (rev 20261)
@@ -448,7 +448,7 @@
Date beforeChrist = ...;
Query luceneQuery = mythQB
.range()
- .onField("starred")
+ .onField("creationDate")
.below(beforeChrist).excludeLimit()
.createQuery();</programlisting>
@@ -481,9 +481,14 @@
.must( mythQB.keyword().onField("description").matching("urban").createQuery() )
.not()
.must( mythQB.range().onField("starred").above(4).createQuery() )
+ .must( mythQB
+ .range()
+ .onField("creationDate")
+ .above(twentiethCentury)
+ .createQuery() )
.createQuery();
-//look for myths that are preferably urban
+//look for popular myths that are preferably urban
Query luceneQuery = mythQB
.bool()
.should( mythQB.keyword().onField("description").matching("urban").createQuery() )
13 years, 8 months
Hibernate SVN: r20260 - search/trunk/hibernate-search/src/test/java/org/hibernate/search/test.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2010-08-25 06:33:27 -0400 (Wed, 25 Aug 2010)
New Revision: 20260
Modified:
search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/Document.java
search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/RamDirectoryTest.java
Log:
HSEARCH-589 Default constructor in Document is needed.
Modified: search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/Document.java
===================================================================
--- search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/Document.java 2010-08-25 10:32:57 UTC (rev 20259)
+++ search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/Document.java 2010-08-25 10:33:27 UTC (rev 20260)
@@ -42,6 +42,9 @@
private String summary;
private String text;
+ public Document() {
+ }
+
public Document(String title, String summary, String text) {
super();
this.summary = summary;
Modified: search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/RamDirectoryTest.java
===================================================================
--- search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/RamDirectoryTest.java 2010-08-25 10:32:57 UTC (rev 20259)
+++ search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/RamDirectoryTest.java 2010-08-25 10:33:27 UTC (rev 20260)
@@ -1,51 +1,54 @@
-/* $Id$
- *
+/*
* Hibernate, Relational Persistence for Idiomatic Java
- *
- * Copyright (c) 2009, 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
+ *
+ * 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;
-import org.hibernate.Session;
-import org.hibernate.search.Search;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.TermQuery;
+import org.hibernate.Session;
+import org.hibernate.search.Search;
+
/**
* @author Emmanuel Bernard
*/
public class RamDirectoryTest extends SearchTestCase {
public void testMultipleEntitiesPerIndex() throws Exception {
-
-
Session s = getSessions().openSession();
s.getTransaction().begin();
Document document =
new Document( "Hibernate in Action", "Object/relational mapping with Hibernate", "blah blah blah" );
- s.persist(document);
+ s.persist( document );
s.flush();
s.persist(
- new AlternateDocument( document.getId(), "Hibernate in Action", "Object/relational mapping with Hibernate", "blah blah blah" )
+ new AlternateDocument(
+ document.getId(),
+ "Hibernate in Action",
+ "Object/relational mapping with Hibernate",
+ "blah blah blah"
+ )
);
s.getTransaction().commit();
s.close();
@@ -54,11 +57,17 @@
s = getSessions().openSession();
s.getTransaction().begin();
- TermQuery q = new TermQuery(new Term("alt_title", "hibernate"));
- assertEquals( "does not properly filter", 0,
- Search.getFullTextSession( s ).createFullTextQuery( q, Document.class ).list().size() );
- assertEquals( "does not properly filter", 1,
- Search.getFullTextSession( s ).createFullTextQuery( q, Document.class, AlternateDocument.class ).list().size() );
+ TermQuery q = new TermQuery( new Term( "alt_title", "hibernate" ) );
+ assertEquals(
+ "does not properly filter", 0,
+ Search.getFullTextSession( s ).createFullTextQuery( q, Document.class ).list().size()
+ );
+ assertEquals(
+ "does not properly filter", 1,
+ Search.getFullTextSession( s )
+ .createFullTextQuery( q, Document.class, AlternateDocument.class )
+ .list().size()
+ );
s.delete( s.get( AlternateDocument.class, document.getId() ) );
s.getTransaction().commit();
s.close();
@@ -83,10 +92,9 @@
}
protected Class<?>[] getAnnotatedClasses() {
- return new Class[]{
+ return new Class[] {
Document.class,
AlternateDocument.class
};
}
-
}
13 years, 8 months
Hibernate SVN: r20259 - search/trunk/hibernate-search/src/test/java/org/hibernate/search/test.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2010-08-25 06:32:57 -0400 (Wed, 25 Aug 2010)
New Revision: 20259
Modified:
search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/Document.java
search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/TransactionTest.java
Log:
HSEARCH-589 Removed @Lob in Document
Modified: search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/Document.java
===================================================================
--- search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/Document.java 2010-08-24 17:19:03 UTC (rev 20258)
+++ search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/Document.java 2010-08-25 10:32:57 UTC (rev 20259)
@@ -1,39 +1,37 @@
-/* $Id$
- *
+/*
* Hibernate, Relational Persistence for Idiomatic Java
- *
- * Copyright (c) 2009, 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
+ *
+ * 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;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
-import javax.persistence.Lob;
-import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Boost;
+import org.hibernate.search.annotations.DocumentId;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
-import org.hibernate.search.annotations.DocumentId;
+import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;
@Entity
@@ -44,9 +42,6 @@
private String summary;
private String text;
- Document() {
- }
-
public Document(String title, String summary, String text) {
super();
this.summary = summary;
@@ -56,7 +51,7 @@
@Id
@GeneratedValue
- @DocumentId
+ @DocumentId
public Long getId() {
return id;
}
@@ -65,8 +60,8 @@
this.id = id;
}
- @Field( store = Store.YES, index = Index.TOKENIZED )
- @Boost(2)
+ @Field(store = Store.YES, index = Index.TOKENIZED)
+ @Boost(2)
public String getTitle() {
return title;
}
@@ -75,8 +70,8 @@
this.title = title;
}
- @Field( name="Abstract", store = Store.NO, index = Index.TOKENIZED )
- public String getSummary() {
+ @Field(name = "Abstract", store = Store.NO, index = Index.TOKENIZED)
+ public String getSummary() {
return summary;
}
@@ -84,9 +79,8 @@
this.summary = summary;
}
- @Lob
- @Field( store = Store.NO, index = Index.TOKENIZED )
- public String getText() {
+ @Field(store = Store.NO, index = Index.TOKENIZED)
+ public String getText() {
return text;
}
Modified: search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/TransactionTest.java
===================================================================
--- search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/TransactionTest.java 2010-08-24 17:19:03 UTC (rev 20258)
+++ search/trunk/hibernate-search/src/test/java/org/hibernate/search/test/TransactionTest.java 2010-08-25 10:32:57 UTC (rev 20259)
@@ -1,26 +1,25 @@
-/* $Id$
- *
+/*
* Hibernate, Relational Persistence for Idiomatic Java
- *
- * Copyright (c) 2009, 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
+ *
+ * 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;
@@ -64,7 +63,7 @@
s.close();
assertEquals( "rollback() should not index", 3, getDocumentNumber() );
-
+
s = getSessions().openSession();
s.connection().setAutoCommit( true ); // www.hibernate.org/403.html
s.persist(
@@ -72,7 +71,7 @@
"Java Persistence with Hibernate", "Object/relational mapping with Hibernate", "blah blah blah"
)
);
- s.flush();
+ s.flush();
s.close();
assertEquals( "no transaction should index", 4, getDocumentNumber() );
@@ -92,5 +91,4 @@
protected Class<?>[] getAnnotatedClasses() {
return new Class[] { Document.class };
}
-
}
13 years, 8 months
Hibernate SVN: r20258 - 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 13:19:03 -0400 (Tue, 24 Aug 2010)
New Revision: 20258
Modified:
core/trunk/documentation/quickstart/src/main/docbook/en-US/content/obtaining.xml
Log:
HHH-5464 - Write a chapter about obtaining Hibernate
Modified: core/trunk/documentation/quickstart/src/main/docbook/en-US/content/obtaining.xml
===================================================================
--- core/trunk/documentation/quickstart/src/main/docbook/en-US/content/obtaining.xml 2010-08-24 17:16:06 UTC (rev 20257)
+++ core/trunk/documentation/quickstart/src/main/docbook/en-US/content/obtaining.xml 2010-08-24 17:19:03 UTC (rev 20258)
@@ -5,10 +5,6 @@
<chapter id="hibernate-gsg-obtain">
<title>Obtaining Hibernate</title>
- <para>
- You obtain Hibernate in one of two anticipated ways.
- </para>
-
<section id="hibernate-gsg-setup-releaseBundle">
<title>Release Bundle Downloads</title>
<para>
13 years, 8 months