All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.annotations.Keyword Maven / Gradle / Ivy

There is a newer version: 3.5.6-Final
Show newest version
//$Id: Keyword.java 10742 2006-11-07 01:03:16Z epbernard $
package org.hibernate.search.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention( RetentionPolicy.RUNTIME )
@Target( {ElementType.METHOD, ElementType.FIELD} )
@Documented
/**
 * Specifies that a property of an entity is a Lucene
 * keyword field
 * @deprecated use @Field(index=Index.UN_TOKENIZED, store=Store.YES) or @DocumentId when id=true was used
 */
@Deprecated
public @interface Keyword {
	/**
	 * The field name
	 */
	String name() default "";

	/**
	 * Specifies that this is the "identifier" keyword
	 */
	boolean id() default false;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy