Hibernate SVN: r14711 - search/trunk.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2008-05-29 11:12:25 -0400 (Thu, 29 May 2008)
New Revision: 14711
Modified:
search/trunk/build.xml
Log:
Silently fail on file move
Modified: search/trunk/build.xml
===================================================================
--- search/trunk/build.xml 2008-05-29 15:12:06 UTC (rev 14710)
+++ search/trunk/build.xml 2008-05-29 15:12:25 UTC (rev 14711)
@@ -356,10 +356,13 @@
</copy>
<!-- ivy uses the module name without hibernate- (to mimic the directory names). Revert the situation -->
- <move file="${dist.lib.dir}/commons-annotations.jar" tofile="${dist.lib.dir}/hibernate-commons-annotations.jar"/>
+ <move file="${dist.lib.dir}/commons-annotations.jar" tofile="${dist.lib.dir}/hibernate-commons-annotations.jar"
+ failonerror="false"/>
<!--move file="${dist.lib.dir}/test/commons-annotations.jar" tofile="${dist.lib.dir}/test/hibernate-commons-annotations.jar"/-->
- <move file="${dist.lib.dir}/test/annotations.jar" tofile="${dist.lib.dir}/test/hibernate-annotations.jar"/>
- <move file="${dist.lib.dir}/test/entitymanager.jar" tofile="${dist.lib.dir}/test/hibernate-entitymanager.jar"/>
+ <move file="${dist.lib.dir}/test/annotations.jar" tofile="${dist.lib.dir}/test/hibernate-annotations.jar"
+ failonerror="false"/>
+ <move file="${dist.lib.dir}/test/entitymanager.jar" tofile="${dist.lib.dir}/test/hibernate-entitymanager.jar"
+ failonerror="false"/>
<copy file="${basedir}/build.properties.dist" tofile="${dist.dir}/build.properties" failonerror="false">
16 years, 7 months
Hibernate SVN: r14710 - entitymanager/trunk and 1 other directories.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2008-05-29 11:12:06 -0400 (Thu, 29 May 2008)
New Revision: 14710
Modified:
annotations/trunk/build.xml
entitymanager/trunk/build.xml
validator/trunk/build.xml
Log:
Silently fail on file move
Modified: annotations/trunk/build.xml
===================================================================
--- annotations/trunk/build.xml 2008-05-29 14:43:52 UTC (rev 14709)
+++ annotations/trunk/build.xml 2008-05-29 15:12:06 UTC (rev 14710)
@@ -274,7 +274,8 @@
</copy>
<!-- ivy uses the module name without hibernate- (to mimic the directory names). Revert the situation -->
- <move file="${dist.lib.dir}/commons-annotations.jar" tofile="${dist.lib.dir}/hibernate-commons-annotations.jar"/>
+ <move file="${dist.lib.dir}/commons-annotations.jar" tofile="${dist.lib.dir}/hibernate-commons-annotations.jar"
+ failonerror="false"/>
<copy file="${basedir}/build.properties.dist" tofile="${dist.dir}/build.properties" failonerror="false">
</copy>
Modified: entitymanager/trunk/build.xml
===================================================================
--- entitymanager/trunk/build.xml 2008-05-29 14:43:52 UTC (rev 14709)
+++ entitymanager/trunk/build.xml 2008-05-29 15:12:06 UTC (rev 14710)
@@ -417,8 +417,10 @@
</copy>
<!-- ivy uses the module name without hibernate- (to mimic the directory names). Revert the situation -->
- <move file="${dist.lib.dir}/commons-annotations.jar" tofile="${dist.lib.dir}/hibernate-commons-annotations.jar"/>
- <move file="${dist.lib.dir}/annotations.jar" tofile="${dist.lib.dir}/hibernate-annotations.jar"/>
+ <move file="${dist.lib.dir}/commons-annotations.jar" tofile="${dist.lib.dir}/hibernate-commons-annotations.jar"
+ failonerror="false"/>
+ <move file="${dist.lib.dir}/annotations.jar" tofile="${dist.lib.dir}/hibernate-annotations.jar"
+ failonerror="false"/>
<copy file="${basedir}/build.properties.dist" tofile="${dist.dir}/build.properties" failonerror="false">
Modified: validator/trunk/build.xml
===================================================================
--- validator/trunk/build.xml 2008-05-29 14:43:52 UTC (rev 14709)
+++ validator/trunk/build.xml 2008-05-29 15:12:06 UTC (rev 14710)
@@ -294,9 +294,12 @@
</copy>
<!-- ivy uses the module name without hibernate- (to mimic the directory names). Revert the situation -->
- <move file="${dist.lib.dir}/commons-annotations.jar" tofile="${dist.lib.dir}/hibernate-commons-annotations.jar"/>
- <move file="${dist.lib.dir}/test/annotations.jar" tofile="${dist.lib.dir}/test/hibernate-annotations.jar"/>
- <move file="${dist.lib.dir}/test/entitymanager.jar" tofile="${dist.lib.dir}/test/hibernate-entitymanager.jar"/>
+ <move file="${dist.lib.dir}/commons-annotations.jar" tofile="${dist.lib.dir}/hibernate-commons-annotations.jar"
+ failonerror="false"/>
+ <move file="${dist.lib.dir}/test/annotations.jar" tofile="${dist.lib.dir}/test/hibernate-annotations.jar"
+ failonerror="false"/>
+ <move file="${dist.lib.dir}/test/entitymanager.jar" tofile="${dist.lib.dir}/test/hibernate-entitymanager.jar"
+ failonerror="false"/>
<copy file="${basedir}/build.properties.dist" tofile="${dist.dir}/build.properties" failonerror="false">
</copy>
16 years, 7 months
Hibernate SVN: r14709 - search/trunk/src/java/org/hibernate/search/backend.
by hibernate-commits@lists.jboss.org
Author: sannegrinovero
Date: 2008-05-29 10:43:52 -0400 (Thu, 29 May 2008)
New Revision: 14709
Modified:
search/trunk/src/java/org/hibernate/search/backend/AddLuceneWork.java
search/trunk/src/java/org/hibernate/search/backend/DeleteLuceneWork.java
search/trunk/src/java/org/hibernate/search/backend/LuceneWork.java
search/trunk/src/java/org/hibernate/search/backend/OptimizeLuceneWork.java
search/trunk/src/java/org/hibernate/search/backend/PurgeAllLuceneWork.java
Log:
LuceneWork implementations made Serializable, assigned UID.
Modified: search/trunk/src/java/org/hibernate/search/backend/AddLuceneWork.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/backend/AddLuceneWork.java 2008-05-29 11:56:45 UTC (rev 14708)
+++ search/trunk/src/java/org/hibernate/search/backend/AddLuceneWork.java 2008-05-29 14:43:52 UTC (rev 14709)
@@ -8,7 +8,10 @@
/**
* @author Emmanuel Bernard
*/
-public class AddLuceneWork extends LuceneWork {
+public class AddLuceneWork extends LuceneWork implements Serializable {
+
+ private static final long serialVersionUID = -2450349312813297371L;
+
public AddLuceneWork(Serializable id, String idInString, Class entity, Document document) {
super( id, idInString, entity, document );
}
Modified: search/trunk/src/java/org/hibernate/search/backend/DeleteLuceneWork.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/backend/DeleteLuceneWork.java 2008-05-29 11:56:45 UTC (rev 14708)
+++ search/trunk/src/java/org/hibernate/search/backend/DeleteLuceneWork.java 2008-05-29 14:43:52 UTC (rev 14709)
@@ -6,7 +6,9 @@
/**
* @author Emmanuel Bernard
*/
-public class DeleteLuceneWork extends LuceneWork {
+public class DeleteLuceneWork extends LuceneWork implements Serializable {
+ private static final long serialVersionUID = -854604138119230246L;
+
public DeleteLuceneWork(Serializable id, String idInString, Class entity) {
super( id, idInString, entity );
}
Modified: search/trunk/src/java/org/hibernate/search/backend/LuceneWork.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/backend/LuceneWork.java 2008-05-29 11:56:45 UTC (rev 14708)
+++ search/trunk/src/java/org/hibernate/search/backend/LuceneWork.java 2008-05-29 14:43:52 UTC (rev 14709)
@@ -12,16 +12,16 @@
* @author Hardy Ferentschik
*/
public abstract class LuceneWork implements Serializable {
- //TODO set a serial id
- private Document document;
- private Class entityClass;
- private Serializable id;
+
+ private final Document document;
+ private final Class entityClass;
+ private final Serializable id;
/**
* Flag indicating if this lucene work has to be indexed in batch mode.
*/
private boolean batch = false;
- private String idInString;
+ private final String idInString;
public LuceneWork(Serializable id, String idInString, Class entity) {
this( id, idInString, entity, null );
@@ -38,6 +38,7 @@
return batch;
}
+ //TODO move to final field, or enable synchronization?
public void setBatch(boolean batch) {
this.batch = batch;
}
Modified: search/trunk/src/java/org/hibernate/search/backend/OptimizeLuceneWork.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/backend/OptimizeLuceneWork.java 2008-05-29 11:56:45 UTC (rev 14708)
+++ search/trunk/src/java/org/hibernate/search/backend/OptimizeLuceneWork.java 2008-05-29 14:43:52 UTC (rev 14709)
@@ -1,11 +1,13 @@
// $Id$
package org.hibernate.search.backend;
+import java.io.Serializable;
+
/**
* @author Andrew Hahn
* @author Emmanuel Bernard
*/
-public class OptimizeLuceneWork extends LuceneWork {
+public class OptimizeLuceneWork extends LuceneWork implements Serializable {
public OptimizeLuceneWork(Class entity) {
super( null, null, entity );
}
Modified: search/trunk/src/java/org/hibernate/search/backend/PurgeAllLuceneWork.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/backend/PurgeAllLuceneWork.java 2008-05-29 11:56:45 UTC (rev 14708)
+++ search/trunk/src/java/org/hibernate/search/backend/PurgeAllLuceneWork.java 2008-05-29 14:43:52 UTC (rev 14709)
@@ -8,7 +8,9 @@
*
* @author John Griffin
*/
-public class PurgeAllLuceneWork extends LuceneWork {
+public class PurgeAllLuceneWork extends LuceneWork implements Serializable {
+ private static final long serialVersionUID = 8124091288284011715L;
+
public PurgeAllLuceneWork(Class entity) {
super( null, null, entity, null );
}
16 years, 7 months
Hibernate SVN: r14708 - search/trunk/src/java/org/hibernate/search/engine.
by hibernate-commits@lists.jboss.org
Author: sannegrinovero
Date: 2008-05-29 07:56:45 -0400 (Thu, 29 May 2008)
New Revision: 14708
Modified:
search/trunk/src/java/org/hibernate/search/engine/QueryLoader.java
Log:
use of Collections.EMPTY_LIST for empty results
Modified: search/trunk/src/java/org/hibernate/search/engine/QueryLoader.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/engine/QueryLoader.java 2008-05-29 11:50:15 UTC (rev 14707)
+++ search/trunk/src/java/org/hibernate/search/engine/QueryLoader.java 2008-05-29 11:56:45 UTC (rev 14708)
@@ -2,6 +2,7 @@
package org.hibernate.search.engine;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
import org.hibernate.Criteria;
@@ -18,7 +19,6 @@
*/
public class QueryLoader implements Loader {
private static final int MAX_IN_CLAUSE = 500;
- private static final List EMPTY_LIST = new ArrayList( 0 );
private final Logger log = LoggerFactory.getLogger( QueryLoader.class );
private Session session;
@@ -35,7 +35,6 @@
this.entityType = entityType;
}
-
public Object load(EntityInfo entityInfo) {
//be sure to get an initialized object
Object maybeProxy = session.get( entityInfo.clazz, entityInfo.id );
@@ -57,7 +56,7 @@
public List load(EntityInfo... entityInfos) {
final int maxResults = entityInfos.length;
- if ( maxResults == 0 ) return EMPTY_LIST;
+ if ( maxResults == 0 ) return Collections.EMPTY_LIST;
if ( entityType == null ) throw new AssertionFailure( "EntityType not defined" );
if ( criteria == null ) criteria = session.createCriteria( entityType );
16 years, 7 months
Hibernate SVN: r14707 - in search/trunk/src/java/org/hibernate/search: backend/impl and 3 other directories.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2008-05-29 07:50:15 -0400 (Thu, 29 May 2008)
New Revision: 14707
Modified:
search/trunk/src/java/org/hibernate/search/backend/OptimizeLuceneWork.java
search/trunk/src/java/org/hibernate/search/backend/impl/PostTransactionWorkQueueSynchronization.java
search/trunk/src/java/org/hibernate/search/bridge/BridgeFactory.java
search/trunk/src/java/org/hibernate/search/bridge/FieldBridge.java
search/trunk/src/java/org/hibernate/search/bridge/builtin/NumberBridge.java
search/trunk/src/java/org/hibernate/search/bridge/builtin/StringBridge.java
search/trunk/src/java/org/hibernate/search/engine/EntityInfo.java
Log:
- Import cleanup and small javadoc updates
Modified: search/trunk/src/java/org/hibernate/search/backend/OptimizeLuceneWork.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/backend/OptimizeLuceneWork.java 2008-05-29 11:48:36 UTC (rev 14706)
+++ search/trunk/src/java/org/hibernate/search/backend/OptimizeLuceneWork.java 2008-05-29 11:50:15 UTC (rev 14707)
@@ -1,8 +1,6 @@
// $Id$
package org.hibernate.search.backend;
-import java.io.Serializable;
-
/**
* @author Andrew Hahn
* @author Emmanuel Bernard
Modified: search/trunk/src/java/org/hibernate/search/backend/impl/PostTransactionWorkQueueSynchronization.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/backend/impl/PostTransactionWorkQueueSynchronization.java 2008-05-29 11:48:36 UTC (rev 14706)
+++ search/trunk/src/java/org/hibernate/search/backend/impl/PostTransactionWorkQueueSynchronization.java 2008-05-29 11:50:15 UTC (rev 14707)
@@ -1,14 +1,10 @@
//$Id$
package org.hibernate.search.backend.impl;
-import java.util.List;
-import java.util.ArrayList;
-import java.io.Serializable;
import javax.transaction.Status;
import javax.transaction.Synchronization;
import org.hibernate.search.backend.QueueingProcessor;
-import org.hibernate.search.backend.WorkType;
import org.hibernate.search.backend.Work;
import org.hibernate.search.backend.WorkQueue;
import org.hibernate.search.util.WeakIdentityHashMap;
Modified: search/trunk/src/java/org/hibernate/search/bridge/BridgeFactory.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/bridge/BridgeFactory.java 2008-05-29 11:48:36 UTC (rev 14706)
+++ search/trunk/src/java/org/hibernate/search/bridge/BridgeFactory.java 2008-05-29 11:50:15 UTC (rev 14707)
@@ -3,38 +3,39 @@
import java.math.BigDecimal;
import java.math.BigInteger;
+import java.net.URI;
+import java.net.URL;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
-import java.net.URL;
-import java.net.URI;
+import org.hibernate.AssertionFailure;
import org.hibernate.HibernateException;
-import org.hibernate.AssertionFailure;
+import org.hibernate.annotations.common.reflection.ReflectionManager;
+import org.hibernate.annotations.common.reflection.XClass;
+import org.hibernate.annotations.common.reflection.XMember;
+import org.hibernate.search.SearchException;
+import org.hibernate.search.annotations.ClassBridge;
+import org.hibernate.search.annotations.Field;
+import org.hibernate.search.annotations.Parameter;
+import org.hibernate.search.annotations.Resolution;
+import org.hibernate.search.bridge.builtin.BigDecimalBridge;
+import org.hibernate.search.bridge.builtin.BigIntegerBridge;
+import org.hibernate.search.bridge.builtin.BooleanBridge;
import org.hibernate.search.bridge.builtin.DateBridge;
+import org.hibernate.search.bridge.builtin.DoubleBridge;
+import org.hibernate.search.bridge.builtin.EnumBridge;
import org.hibernate.search.bridge.builtin.FloatBridge;
+import org.hibernate.search.bridge.builtin.IntegerBridge;
import org.hibernate.search.bridge.builtin.LongBridge;
-import org.hibernate.search.bridge.builtin.BigIntegerBridge;
+import org.hibernate.search.bridge.builtin.ShortBridge;
import org.hibernate.search.bridge.builtin.StringBridge;
-import org.hibernate.search.bridge.builtin.IntegerBridge;
-import org.hibernate.search.bridge.builtin.BigDecimalBridge;
-import org.hibernate.search.bridge.builtin.DoubleBridge;
-import org.hibernate.search.bridge.builtin.ShortBridge;
-import org.hibernate.search.bridge.builtin.EnumBridge;
-import org.hibernate.search.bridge.builtin.BooleanBridge;
+import org.hibernate.search.bridge.builtin.UriBridge;
import org.hibernate.search.bridge.builtin.UrlBridge;
-import org.hibernate.search.bridge.builtin.UriBridge;
-import org.hibernate.search.annotations.Resolution;
-import org.hibernate.search.annotations.Parameter;
-import org.hibernate.search.annotations.Field;
-import org.hibernate.search.annotations.ClassBridge;
-import org.hibernate.search.SearchException;
-import org.hibernate.search.util.BinderHelper;
-import org.hibernate.annotations.common.reflection.XClass;
-import org.hibernate.annotations.common.reflection.XMember;
-import org.hibernate.annotations.common.reflection.ReflectionManager;
/**
+ * This factory is responsible for creating and initializing build-in and custom <i>FieldBridges</i>.
+ *
* @author Emmanuel Bernard
* @author John Griffin
*/
Modified: search/trunk/src/java/org/hibernate/search/bridge/FieldBridge.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/bridge/FieldBridge.java 2008-05-29 11:48:36 UTC (rev 14706)
+++ search/trunk/src/java/org/hibernate/search/bridge/FieldBridge.java 2008-05-29 11:50:15 UTC (rev 14707)
@@ -10,8 +10,6 @@
*
* @author Emmanuel Bernard
*/
-//TODO should show Field or document?
-//document is nice since I can save an object into several fields
public interface FieldBridge {
/**
* Manipulate the document to index the given value.
Modified: search/trunk/src/java/org/hibernate/search/bridge/builtin/NumberBridge.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/bridge/builtin/NumberBridge.java 2008-05-29 11:48:36 UTC (rev 14706)
+++ search/trunk/src/java/org/hibernate/search/bridge/builtin/NumberBridge.java 2008-05-29 11:50:15 UTC (rev 14707)
@@ -1,10 +1,11 @@
//$Id$
package org.hibernate.search.bridge.builtin;
-import org.hibernate.search.bridge.StringBridge;
import org.hibernate.search.bridge.TwoWayStringBridge;
/**
+ * Base class for numbers - integer, double, etc.
+ *
* @author Emmanuel Bernard
*/
public abstract class NumberBridge implements TwoWayStringBridge {
Modified: search/trunk/src/java/org/hibernate/search/bridge/builtin/StringBridge.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/bridge/builtin/StringBridge.java 2008-05-29 11:48:36 UTC (rev 14706)
+++ search/trunk/src/java/org/hibernate/search/bridge/builtin/StringBridge.java 2008-05-29 11:50:15 UTC (rev 14707)
@@ -1,7 +1,6 @@
//$Id$
package org.hibernate.search.bridge.builtin;
-
/**
* Map a string element
*
Modified: search/trunk/src/java/org/hibernate/search/engine/EntityInfo.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/engine/EntityInfo.java 2008-05-29 11:48:36 UTC (rev 14706)
+++ search/trunk/src/java/org/hibernate/search/engine/EntityInfo.java 2008-05-29 11:50:15 UTC (rev 14707)
@@ -3,7 +3,6 @@
import java.io.Serializable;
import java.util.List;
-import java.util.ArrayList;
/**
*
16 years, 7 months
Hibernate SVN: r14706 - search/trunk.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2008-05-29 07:48:36 -0400 (Thu, 29 May 2008)
New Revision: 14706
Modified:
search/trunk/build.xml
Log:
- Changed some of the comments. This is the Hibernate Search and not Annotation build file
- Also commented out the copying of commons-annotation to the test directory of the dist (see dist target). There is no commons-annotation to copy.
Modified: search/trunk/build.xml
===================================================================
--- search/trunk/build.xml 2008-05-29 11:44:13 UTC (rev 14705)
+++ search/trunk/build.xml 2008-05-29 11:48:36 UTC (rev 14706)
@@ -1,8 +1,8 @@
<!--
- Hibernate Annotations ANT build script.
+ Hibernate Search ANT build script.
- You need JDK 5.0 installed to build Hibernate Annotations.
+ You need JDK 5.0 installed to build Hibernate Search.
-->
@@ -357,7 +357,7 @@
<!-- ivy uses the module name without hibernate- (to mimic the directory names). Revert the situation -->
<move file="${dist.lib.dir}/commons-annotations.jar" tofile="${dist.lib.dir}/hibernate-commons-annotations.jar"/>
- <move file="${dist.lib.dir}/test/commons-annotations.jar" tofile="${dist.lib.dir}/test/hibernate-commons-annotations.jar"/>
+ <!--move file="${dist.lib.dir}/test/commons-annotations.jar" tofile="${dist.lib.dir}/test/hibernate-commons-annotations.jar"/-->
<move file="${dist.lib.dir}/test/annotations.jar" tofile="${dist.lib.dir}/test/hibernate-annotations.jar"/>
<move file="${dist.lib.dir}/test/entitymanager.jar" tofile="${dist.lib.dir}/test/hibernate-entitymanager.jar"/>
16 years, 7 months
Hibernate SVN: r14705 - search/trunk/doc/reference/en/modules.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2008-05-29 07:44:13 -0400 (Thu, 29 May 2008)
New Revision: 14705
Modified:
search/trunk/doc/reference/en/modules/mapping.xml
Log:
HSEARCH-198 Updated the documentation regarding the term vector configuration
Modified: search/trunk/doc/reference/en/modules/mapping.xml
===================================================================
--- search/trunk/doc/reference/en/modules/mapping.xml 2008-05-29 11:27:38 UTC (rev 14704)
+++ search/trunk/doc/reference/en/modules/mapping.xml 2008-05-29 11:44:13 UTC (rev 14705)
@@ -4,9 +4,10 @@
<title>Mapping entities to the index structure</title>
<para>All the metadata information needed to index entities is described
- through some Java annotations. There is no need for xml mapping files nor a
- list of indexed entities. The list is discovered at startup time scanning
- the Hibernate mapped entities.</para>
+ through some Java annotations. There is no need for xml mapping files (in
+ fact there exists currently no xml configuration option) nor a list of
+ indexed entities. The list is discovered at startup time scanning the
+ Hibernate mapped entities.</para>
<section id="search-mapping-entity" revision="3">
<title>Mapping an entity</title>
@@ -70,14 +71,12 @@
<literal>Index.NO_NORM</literal> (do not store the normalization
data). The default value is <literal>TOKENIZED</literal>.</para>
</listitem>
- </itemizedlist>
- <itemizedlist>
<listitem>
- <para>termVector: describes collections of term-frequency pairs. To
- utilize Term Vectors this attribute enables their being stored
- during indexing so they are stored with documents. The default value
- is Field.TermVector.NO.</para>
+ <para>termVector: describes collections of term-frequency pairs.
+ This attribute enables term vectors being stored during indexing so
+ they are available within documents. The default value is
+ TermVector.NO.</para>
<para>The different values of this attribute are</para>
@@ -95,7 +94,7 @@
<tbody>
<row>
- <entry align="left">Field.TermVector.YES</entry>
+ <entry align="left">TermVector.YES</entry>
<entry>Store the term vectors of each document. This
produces two synchronized arrays, one contains document
@@ -103,32 +102,32 @@
</row>
<row>
- <entry align="left">Field.TermVector.NO</entry>
+ <entry align="left">TermVector.NO</entry>
<entry>Do not store term vectors.</entry>
</row>
<row>
- <entry align="left">Field.TermVector.WITH_OFFSETS</entry>
+ <entry align="left">TermVector.WITH_OFFSETS</entry>
<entry>Store the term vector and token offset information.
- This is the same as Field.TermVector.YES plus this contains
- the starting and ending offset position information for the
- terms</entry>
+ This is the same as TermVector.YES plus it contains the
+ starting and ending offset position information for the
+ terms.</entry>
</row>
<row>
- <entry align="left">Field.TermVector.WITH_POSITIONS</entry>
+ <entry align="left">TermVector.WITH_POSITIONS</entry>
<entry>Store the term vector and token position information.
- This is the same as Field.TermVector.YES plus this contains
- the ordinal positions of each occurrence of a term in a
+ This is the same as TermVector.YES plus it contains the
+ ordinal positions of each occurrence of a term in a
document.</entry>
</row>
<row>
<entry
- align="left">Field.TermVector.WITH_POSITIONS_OFFSETS</entry>
+ align="left">TermVector.WITH_POSITIONS_OFFSETS</entry>
<entry>Store the term vector, token position and offset
information. This is a combination of the YES, WITH_OFFSETS
16 years, 7 months
Hibernate SVN: r14704 - search/trunk/src/java/org/hibernate/search.
by hibernate-commits@lists.jboss.org
Author: sannegrinovero
Date: 2008-05-29 07:27:38 -0400 (Thu, 29 May 2008)
New Revision: 14704
Modified:
search/trunk/src/java/org/hibernate/search/Version.java
Log:
"Version" class releases Logger to gc after use
Modified: search/trunk/src/java/org/hibernate/search/Version.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/Version.java 2008-05-29 04:10:56 UTC (rev 14703)
+++ search/trunk/src/java/org/hibernate/search/Version.java 2008-05-29 11:27:38 UTC (rev 14704)
@@ -12,9 +12,9 @@
*/
public class Version {
public static final String VERSION = "3.1.x." + new Date();
- private static Logger log = LoggerFactory.getLogger( Version.class );
static {
+ Logger log = LoggerFactory.getLogger( Version.class );
log.info( "Hibernate Search {}", VERSION );
}
16 years, 7 months
Hibernate SVN: r14703 - in search/trunk: ivy and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2008-05-29 00:10:56 -0400 (Thu, 29 May 2008)
New Revision: 14703
Modified:
search/trunk/build.properties.dist
search/trunk/build.xml
search/trunk/ivy.xml
search/trunk/ivy/ivyconf.xml
search/trunk/pom.xml
Log:
Move dependencies to repository artifacts rather than latest
Modified: search/trunk/build.properties.dist
===================================================================
--- search/trunk/build.properties.dist 2008-05-27 20:56:10 UTC (rev 14702)
+++ search/trunk/build.properties.dist 2008-05-29 04:10:56 UTC (rev 14703)
@@ -1,12 +1,4 @@
common.dir=.
src.dir=src
test.dir=test
-testresources.dir=test-resources
-hibernate-core.home=../hibernate-3.2
-
-#locally present jars
-jpa-api.jar=./lib/ejb3-persistence.jar
-commons-annotations.jar=./lib/hibernate-commons-annotations.jar
-annotations.jar=./lib/test/hibernate-annotations.jar
-entitymanager.jar=./lib/test/hibernate-entitymanager.jar
-validator.jar=./lib/test/hibernate-validator.jar
\ No newline at end of file
+testresources.dir=test-resources
\ No newline at end of file
Modified: search/trunk/build.xml
===================================================================
--- search/trunk/build.xml 2008-05-27 20:56:10 UTC (rev 14702)
+++ search/trunk/build.xml 2008-05-29 04:10:56 UTC (rev 14703)
@@ -17,7 +17,7 @@
<!-- Name of project and version, used to create filenames -->
<property name="Name" value="Hibernate Search"/>
<property name="name" value="hibernate-search"/>
- <property name="version" value="3.1.0.CR1"/>
+ <property name="version" value="3.1.0.Beta1"/>
<property name="javadoc.packagenames" value="org.hibernate.search.*"/>
<property name="copy.test" value="true"/>
<property name="javac.source" value="1.5"/>
@@ -355,6 +355,13 @@
<fileset file="${lib.dir}/build/*.jar"/>
</copy>
+ <!-- ivy uses the module name without hibernate- (to mimic the directory names). Revert the situation -->
+ <move file="${dist.lib.dir}/commons-annotations.jar" tofile="${dist.lib.dir}/hibernate-commons-annotations.jar"/>
+ <move file="${dist.lib.dir}/test/commons-annotations.jar" tofile="${dist.lib.dir}/test/hibernate-commons-annotations.jar"/>
+ <move file="${dist.lib.dir}/test/annotations.jar" tofile="${dist.lib.dir}/test/hibernate-annotations.jar"/>
+ <move file="${dist.lib.dir}/test/entitymanager.jar" tofile="${dist.lib.dir}/test/hibernate-entitymanager.jar"/>
+
+
<copy file="${basedir}/build.properties.dist" tofile="${dist.dir}/build.properties" failonerror="false">
</copy>
<antcall target="common-build.dist"/>
Modified: search/trunk/ivy/ivyconf.xml
===================================================================
--- search/trunk/ivy/ivyconf.xml 2008-05-27 20:56:10 UTC (rev 14702)
+++ search/trunk/ivy/ivyconf.xml 2008-05-29 04:10:56 UTC (rev 14703)
@@ -12,6 +12,9 @@
<ivy pattern="../[module]/target/[revision]/ivy.xml"/>
<artifact pattern="../[module]/target/[revision]/[artifact].[ext]"/>
</filesystem>
+ <filesystem name="maven-local" m2compatible="true">
+ <artifact pattern="${offline.repository.jboss.org}/[organization]/hibernate-[module]/[revision]/hibernate-[artifact]-[revision].[ext]"/>
+ </filesystem>
<url name="jboss-rep-maven-regular" m2compatible="true">
<artifact pattern="http://repository.jboss.org/maven2/[organization]/[module]/[revision]/[ar..."/>
</url>
Modified: search/trunk/ivy.xml
===================================================================
--- search/trunk/ivy.xml 2008-05-27 20:56:10 UTC (rev 14702)
+++ search/trunk/ivy.xml 2008-05-29 04:10:56 UTC (rev 14703)
@@ -15,7 +15,7 @@
<!-- compile time dependencies -->
<dependency name="ejb3-persistence" rev="1.0.2.GA" conf="default->default"/>
- <dependency name="commons-annotations" rev="latest" conf="default->default"/>
+ <dependency name="commons-annotations" rev="3.1.0.CR1" conf="default->default"/>
<dependency org="org.slf4j" name="slf4j-api" rev="1.4.2" conf="default->default"/>
<dependency org="org.hibernate" name="hibernate-core" rev="3.3.0.CR1" conf="default->default"/>
<dependency org="javax.transaction" name="jta" rev="1.1" conf="default->default"/>
@@ -30,8 +30,8 @@
<dependency org="dom4j" name="dom4j" rev="1.6.1" conf="test->default"/>
<!-- test deps -->
- <dependency name="annotations" rev="latest" conf="test->default"/>
- <dependency name="entitymanager" rev="latest" conf="test->default"/>
+ <dependency name="annotations" rev="3.4.0.CR1" conf="test->default"/>
+ <dependency name="entitymanager" rev="3.4.0.CR1" conf="test->default"/>
<dependency org="cglib" name="cglib" rev="2.1_3" conf="test->default"/>
<dependency org="asm" name="asm" rev="1.5.3" conf="test->default"/>
<dependency org="asm" name="asm-attrs" rev="1.5.3" conf="test->default"/>
Modified: search/trunk/pom.xml
===================================================================
--- search/trunk/pom.xml 2008-05-27 20:56:10 UTC (rev 14702)
+++ search/trunk/pom.xml 2008-05-29 04:10:56 UTC (rev 14703)
@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
- <version>3.1.0.CR1</version>
+ <version>3.1.0.Beta1</version>
<description>Hibernate Search</description>
<dependencies>
<dependency>
16 years, 7 months
Hibernate SVN: r14702 - validator/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2008-05-27 16:56:10 -0400 (Tue, 27 May 2008)
New Revision: 14702
Added:
validator/tags/3.1.0.CR1/
Log:
release validator 3.1.0.CR1
Copied: validator/tags/3.1.0.CR1 (from rev 14701, validator/trunk)
16 years, 7 months