Skip to content
Snippets Groups Projects
Commit de05694b authored by ribeaudc's avatar ribeaudc
Browse files

minor: - Update javadoc: research by field name no longer possible.

remove: - No longer used class 'ByteArrayBridge'.

SVN: 9195
parent c3b404b2
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ public interface IHibernateSearchDAO ...@@ -34,7 +34,7 @@ public interface IHibernateSearchDAO
* Searches in entities of type <var>entityClass</var> for given <var>searchTerm</var> using * Searches in entities of type <var>entityClass</var> for given <var>searchTerm</var> using
* all the indexed fields. * all the indexed fields.
* *
* @param searchTerm could be something like "<code>code:C11 AND registrator.lastName:System User</code>". * @param searchTerm could be something like "<code>C11 AND System User</code>".
*/ */
public <T extends IMatchingEntity> List<SearchHit> searchEntitiesByTerm( public <T extends IMatchingEntity> List<SearchHit> searchEntitiesByTerm(
final Class<T> entityClass, final String searchTerm) throws DataAccessException; final Class<T> entityClass, final String searchTerm) throws DataAccessException;
......
/*
* Copyright 2008 ETH Zuerich, CISD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ch.systemsx.cisd.openbis.generic.shared.dto;
import org.hibernate.search.bridge.builtin.StringBridge;
/**
* A {@link StringBridge} extension for handling <i>bytes</i>.
*
* @author Christian Ribeaud
*/
public final class ByteArrayBridge extends StringBridge
{
//
// StringBridge
//
@Override
public final String objectToString(final Object object)
{
return new String((byte[]) object);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment